Board index » cppbuilder » TControlBar

TControlBar

I use a TToolBar on a TControlBar and associate a
menu item from the main menu with the ToolButton.
I want to be able to use the "Insert" or "Delete"
keys from the keyboard. How can I associate and use these
keys with the TToolButton? I am using BCB5 Professional.

 

Re:TControlBar


Quote
> I use a TToolBar on a TControlBar and associate a
> menu item from the main menu with the ToolButton.

How about:

  MyMenuItem1->ShortCut = ShortCut(VK_INSERT, TShiftState());
  MyMenuItem2->ShortCut = ShortCut(VK_DELETE, TShiftState());

--
Yoto Yotov

Other Threads