delphi - Auto refresh of UI control -


I have a problem while using Delphi.

In my UI, I have a label and 5 buttons. Clicking on the 5 button may change some status, which affects the label caption.

The onclick functions of 5 buttons have already been implemented, so I need to add the code to change the labels caption to each of these functions.

This is not good. How do labels auto change captions while checking the status? In VC, the label can notify the message from time to time, can Delphi do this?

Update Update for a verb, action list or action manager event handler These events are removed when the message loop completes the process of user input and becomes useless. This is perfect for your needs because the result of the change of label captions is always the result of user input.

Another way to achieve the same effect is to assign a TApplicationEvents component to the OnIdle event of that component.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -