adding event handler to dynamicaly created MenuItem
Posted on 1997-07-27
I am creating MenuItem objects (in delphi 2) dynamicaly in my program. This menu items are subItem of a static menuItem in a mainMenuItem.
The problem is thet i can't find a way to discover which of the dynamically created menu items where selected.
I can't catch the OnClick event...
I did tryied something like thet :
FOnDone: TNotifyEvent; (in TYPE)
property OnDone: TNotifyEvent read FOnDone write FOnDone; (in publish)
but i cant find the place for testing FOnDone value, or creating other function ...