Solved

Force repaint of a menu

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now