Solved

Force repaint of a menu

Posted on 2003-11-16
3
568 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
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 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