Board index » cppbuilder » Finding a TMenuItem
Mark Mussetter
![]() CBuilder Developer |
Finding a TMenuItem2005-01-27 02:13:30 AM cppbuilder95 Hello Everyone, I have a TMainMenu on Form1, which contains several submenus, which contain lots of TMenuItems. I am looking for a good way to get a pointer to one of the TMenuItems. Currently I have a way to do it, but it's probably not the correct method. This is what I currently do: /******/ TMenuItem *mItem = MainMenu1->FindItem( ShortCut('1', TShiftState() << ssCtrl), fkShortCut ); /******/ Is there a better way (one that wouldn't require a ShortCut)? Thanks for your help, Mark |