BCGSoft > Products > Product feature tour

Product feature tour

Context | First | Prev | Next | Last
Fully implemented BCGControlBar Pro (MFC)
Not available BCGSuite (MFC)
Fully implemented BCGControlBar (Microsoft .NET)

Toolbar Menu buttons

There are several Toolbar Menu button types available for your application in BCGControlBar Library:

  • a regular menu item
  • a  menu item with a submenu
  • a toolbar button with a submenu; in this case the button has a small arrow near the text or image. When the user clicks the button the submenu is displayed
  • a toolbar button, which executes a default command or displays a popup menu; in this case the button has a small arrow separated from the text or image. When the user presses the arrow, the submenu is displayed; otherwise the default button's command is executed.
Sample code:
// Create a menu button:
CBCGToolbarMenuButton btnNew (uiNewCmdID, hMenuNew /* Handle of menu */
    CImageHash::GetImageOfCommand (uiNewCmdID));

// Replace an existing toolbar button by the menu button:
m_wndToolBar.ReplaceButton (ID_FILE_NEW, btnNew);
Prev  Next