View Issue Details

IDProjectCategoryView StatusLast Update
0032516PackagesLCLpublic2021-06-11 12:25
ReporterDavid Assigned ToJuha Manninen  
Status closedResolutionwon't fix 
Product Version1.8RC4 
Summary0032516: Menu Caption not updated at runtime when Popup Menu associated with TrayIcon
DescriptionWhen a Popup Menu is attached to the TrayIcon, updating the MemuItem's caption at run time does not change what is displayed. It does change, it can be read by the program but the user does not see the change when they click the TrayIcon.
Steps To ReproduceBlank form, add a popup memu, TrayIcon and two buttons. Associate the PopupMenu with the Tray Icon, create a one or more menu items and make one button show the TrayIcon.

Then, make the other button change the memu item's caption -

MenuItem1.Caption := 'I changed this';

Run it, click first button to display TrayIcon, click the second button, then the trayicon to see its menu. On OSX, Carbon, its won't have changed.
Additional InformationWorks fine on Linux, windows and even OSX-Cocoa (wow!).

It does work if you call TrayIcon.InternalUpdate; after updating the caption. Its an easy workaround but thats all. (Credit to Hansaplast)
TagsNo tags attached.
Fixed in Revision
Attached Files



2021-06-09 01:18

reporter   ~0131208

As this is a carbon issue and carbon is now irrelevant, it should be closed.
But reporters cannot close so can some else do so please ?


Juha Manninen

2021-06-11 07:28

developer   ~0131248

Resolving as requested.


2021-06-11 12:25

reporter   ~0131257


Issue History

Date Modified Username Field Change
2017-10-06 04:20 David New Issue
2021-06-09 01:18 David Note Added: 0131208
2021-06-11 07:28 Juha Manninen Assigned To => Juha Manninen
2021-06-11 07:28 Juha Manninen Status new => resolved
2021-06-11 07:28 Juha Manninen Resolution open => won't fix
2021-06-11 07:28 Juha Manninen LazTarget => -
2021-06-11 07:28 Juha Manninen Widgetset Carbon => Carbon
2021-06-11 07:28 Juha Manninen Note Added: 0131248
2021-06-11 12:25 David Status resolved => closed
2021-06-11 12:25 David Note Added: 0131257