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)

Ribbon Elements

The library provides the following set of Microsoft Office-style ribbon elements "out of the box":

  • Button
  • Button with Menu (Split Button)
  • Buttons Group
  • Text Label
  • Separator
  • Edit Box
  • Combo Box
  • Check Box
  • Radio Button
  • Color Picker
  • Font Picker
  • Palette (Image List, Gallery)
  • Quick Steps
  • Undo button
  • Hyperlink
  • Slider

The most of ribbon elements should have two images - small and large. In some cases when a ribbon element should display an image (it happens if the element has been stretched to the size when it can display image only), but the image has not been specified the library uses a default internal image.

Buttons, Groups, Combobox and Font Picker:

Color picker with custom palette:

Font Picker with text preview:

Sample code:
// Create ribbon button with menu:
CBCGPRibbonButton* pBtnPaste = new CBCGPRibbonButton (ID_EDIT_PASTE, _T("Paste"), 0, 0);
pBtnPaste->SetMenu (IDR_PASTE_MENU, TRUE);
pPanelClipboard->Add (pBtnPaste);

// Create simple ribbon buttons:
pPanelClipboard->Add (new CBCGPRibbonButton (ID_EDIT_CUT, _T("Cut"), 1));
pPanelClipboard->Add (new CBCGPRibbonButton (ID_EDIT_COPY, _T("Copy"), 2));
pPanelClipboard->Add (new CBCGPRibbonButton (ID_EDIT_FORMAT, _T("Format"), 3));

// Create font picker:
CBCGPRibbonFontComboBox* pFontCombo = new CBCGPRibbonFontComboBox (ID_FONT_FONT);
pFontGroup->AddButton (pFontCombo);

// Create color picker:
CBCGPRibbonColorButton* pColorBtn = new CBCGPRibbonColorButton ();
pColorBtn->EnableOtherButton (_T("Other..."));
pColorBtn->SetColor (RGB (240, 240, 240));

pPanelParagraph->Add (pColorBtn);
Prev  Next