Board index » cppbuilder » PopupMenu question
Dmitry Mikhilov
![]() CBuilder Developer |
PopupMenu question2003-10-17 06:09:14 PM cppbuilder4 A single popup menu is used by different controls on several dynamically created forms. In order to find the control which activated one of menu items, the PopupComponent property of popup menu is used. Everything is fine when I access popup menu with right mouse button. But if instead of activating menu by mouse click I simply press hotkey which corresponds to necessary popup menu item - the proper event fires, but the PopupComponent property of popup menu (pointer to which is extracted from Sender parameter of the event) is NULL and thus I can not not identify the component which activated the menu (if I activate popup menu by mouse at least once, then subsequent hotkey activations for the same control work fine) . What do I misunderstand and how to fix it? Dmitry |