Solved

Force repaint of a menu

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
code issue 8 184
When I am typing into a TEdit last word repeats 7 161
select query - oracle 16 101
TEMBEDDEDWB how can i change its user agent ? 8 84
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 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