Solved

Force repaint of a menu

Posted on 2003-11-16
3
593 Views
Last Modified: 2010-07-27
I need to know how to repaint a menu once it is already popped up. The objective is to be able to animate menu items.
0
Comment
Question by:BrentIris
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 8

Accepted Solution

by:
gmayo earned 125 total points
ID: 9758142
If you just want the picture to change, then there is nothing you need do.

For example:
procedure TForm1.Timer1Timer(Sender: TObject);
begin
      TestMenuItem.ImageIndex := Random(4);
end;

With the menu popped up, this changes the image every second and works perfectly. Is there something else you wanted to do? Maybe call UpdateItems (TMenu).

Geoff M.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question