Solved

Force repaint of a menu

Posted on 2003-11-16
3
555 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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

744 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

18 Experts available now in Live!

Get 1:1 Help Now