Конференция "KOL" » Find menu item after dynamically insert some items before [Delphi, Windows]
 
  • Dodfr (23.08.08 22:13) [0]
    Hi,

    Is there a way to get menu ID of a menu item created using MCK (not menu index because I dynamically add/remove some items when OnPopup).

    If I create a MyMenu item then MyMenu = menu index and it is not an object name I can directly access as with VCL.

    For now, I do this MyMenuID:=popupmenu1.Items[MyMenu]; and I do it for each "important" menu item I need to be sure I can access whenever menu items numbering changed.

    regards.
 
Конференция "KOL" » Find menu item after dynamically insert some items before [Delphi, Windows]
Есть новые Нет новых   [134431   +16][b:0][p:0]