|
 |
BCGControlBar Pro (MFC) |
 |
BCGSuite (MFC) |
 |
BCGControlBar (Microsoft .NET) |
|
Ribbon Mini Toolbar ("Floaty") |
Microsoft Office-style mini toolbar ("Floaty") is a semi-transparent toolbar appearing right near the cursor and containing "hot" commands relevant to the current context. In addition, a mini toolbar can be used along with a context menu |
|
User selected a text and semi-transparent toolbar has appeared:

|
|
Toolbar became visible when user hovers the cursor over toolbar:

|
|
Mini toolbar with the context menu:

|
|
Sample code: |
void CMyView::OnLButtonUp(UINT nFlags, CPoint point)
{
// Create a floaty:
CBCGPRibbonFloaty* pFloaty = new CBCGPRibbonFloaty;
// Initialize commands list:
CList<UINT, UINT> lstCmds;
lstCmds.AddTail (ID_FONT_FONT);
.....
pFloaty->SetCommands (pRibbonBar, lstCmds);
// Display floaty near the cursor:
ClientToScreen (&point);
pFloaty->Show (point.x, point.y);
}
void CMyView::OnContextMenu(CWnd* pWnd, CPoint point)
{
// Create a floaty:
CBCGPRibbonFloaty* pFloaty = new CBCGPRibbonFloaty;
// Initialize commands list:
CList<UINT, UINT> lstCmds;
lstCmds.AddTail (ID_FONT_FONT);
.....
pFloaty->SetCommands (pRibbonBar, lstCmds);
// Show floaty with a context menu:
pFloaty->ShowWithContextMenu (point.x, point.y, IDR_CONTEXT_MENU, this);
}
|
|
|
Prev
Next |