My question is how to catch which menu item was pressed in some form? For an example :
I have a form with a button. When I pressed the button the menu of the application will be on focus and the child form wait to choose a menu item. After I choose one the child form show a message with the name of the menu item which I pressed.
Can anyone tell me how to do this?
Thanks in advance!
example:
global variables (private declaration in TMyForm):
your TButton handler:
your TMenuItem event handler: