I am implementing a main menu, but there are some items that must change it caption according to the value of some variables.
For example:
An item have "Start counting"
But if the app is already counting, the item must say "Stop Counting"
Is there any way to verify a variable when the mainmenu is clicked, BEFORE it shows the items? IF so, i could so something like this:
counting : boolean;
If counting then MainMenu.Items[0].Caption :='Stop counting'
else MainMenu.Items[0].Caption :='Start counting';