Notification before MainMenu is opened lazarus / 31-LCL ---------------------------------------------------------------------- Pascal · 2015-07-01 08:02 Hello, is there a way to get notified before the main menu gests opened to update some menu items? Regards Pascal ---------------------------------------------------------------------- Groffy · 2015-07-01 08:19 Quote from: Pascal on July 01, 2015, 10:02:57 amis there a way to get notified before the main menu gests opened to update some menu items? Maybe the TMenuItem - OnClick event works for you? Ulrich ---------------------------------------------------------------------- Pascal · 2015-07-02 07:46 Unfortunately not! OnClick is called A F T E R a menu item is displayed and clicked. Pascal ---------------------------------------------------------------------- taazz · 2015-07-02 08:22 Quote from: Pascal on July 02, 2015, 09:46:57 amUnfortunately not! OnClick is called A F T E R a menu item is displayed and clicked. Pascal use actions and action lists and link them to your menu items. After that use the onupdate of the action. ---------------------------------------------------------------------- rvk · 2015-07-02 08:23 Quote from: Pascal on July 02, 2015, 09:46:57 amOnClick is called A F T E R a menu item is displayed and clicked. No (and yes). But Groffy was talking about the OnClick event of MAIN- MENU item. The one on the top bar. The one that's always visible. When catching that one you still have time to change the sub-menus before that sub-menu is opened. ---------------------------------------------------------------------- Pascal · 2015-07-02 09:23 Yes, sorry, you are right. In the meantime i also realized that the OnClick-Event of the Main- Menu item ist the right place to do this! Thank you. Pascal