BCGSoft > Products > Product feature tour

Product feature tour

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

Ribbon Application Modes

Ribbon Application Modes support provides a simple and efficient way to associate various Ribbon elements (such as buttons, panels or categories) with specific application modes and automatically hide "non-relevant" Ribbon elements at run time. For example, if your application has demonstration and standard modes and file saving operation is not available in the demo mode, associate save buttons with the standard mode.
"Advanced" mode: all elements are visible


"Demo" mode: no paste, save and advanced controls


Sample code:
// "Paste" button is visible in "Simple" and "Advanced" modes:
CBCGPRibbonButton* pBtnPaste = new CBCGPRibbonButton (ID_EDIT_PASTE, _T("Paste\nv"), 0, 0);
pBtnPaste->SetMenu (IDR_PASTE_MENU, TRUE);
pBtnPaste->SetApplicationModes(APP_MODE_SIMPLE | APP_MODE_ADVANCED);
...
// Set "Advanced" application mode:
m_wndRibbonBar.SetApplicationModes(| APP_MODE_ADVANCED);
Prev  Next