gur
asked on
adding event handler to dynamicaly created MenuItem
Hi,
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 ...
HELPPPPPPPPPPPPPPPP...
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 ...
HELPPPPPPPPPPPPPPPP...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.