BCGSuite for MFC
CBCGPRadialMenu

Detailed Description

The CBCGPRadialMenu window implements the functionality of a radial popup menu. Radial popup menu is a menu with radial shape where items are located around the center. Usually, the radial menu is intended for selected object handling. For the better look and usability, the recommended number of menu items is 8. Optionally, you can add an item to the center by calling CBCGPRadialMenuObject::EnableCenterButton method.

Example:

Copy
CBCGPRadialMenu* pMenuCtrl = new CBCGPRadialMenu;
ASSERT_VALID(pMenu);
pMenu->SetImageList(IDR_RADIAL_MENU);
pMenu->AddCommand(ID_OBJECT_MOVETOFRONT, 0 /* Image index */);
pMenu->AddCommand(ID_OBJECT_MOVETOBACK, 1 /* Image index */);
pMenu->AddCommand(ID_EDIT_PASTE, 2 /* Image index */);
pMenu->AddCommand(ID_EDIT_CUT, 3 /* Image index */);
pMenu->AddCommand(ID_EDIT_COPY, 4 /* Image index */);
pMenu->AddCommand(ID_OBJECT_FILLCOLOR, 5 /* Image index */);
pMenu->AddCommand(ID_OBJECT_LINECOLOR, 6 /* Image index */);
pMenu->AddCommand(ID_EDIT_CLEAR, 7 /* Image index */);
pMenuCtrl->CreatePopup(point);
+ Inheritance diagram for CBCGPRadialMenu:

Public Member Functions

 CBCGPRadialMenuconstructor
 
 CreatePopupCreates the radial popup menu
 
 GetIconSizeReturns the radial menu icon size
 
 GetRadialMenuObjectReturns a pointer to encapsulated CBCGPRadialMenuObject object
 
- Public Member Functions inherited from CBCGPBaseVisualCtrl
 CreateCreates a Windows control.
 
 CreatePopupCreates a popup window
 
 DoPrintImplements printing support for encapsulated visual object.
 
 EnableInfoTipEnables the information tip associated with this control.
 
 EnableTooltipEnables tooltips
 
 GetGraphicsManagerGets graphics manager associated with control.
 
 GetPrintOptionsGets control printing options.
 
 IsInfoTipEnabledTells whether the information tip is enabled.
 
 IsTooltipEnabledTells whether the visual control tooltip support is enabled.
 
 SetPrintOptionsSets control printing options.
 

Additional Inherited Members

- Static Public Member Functions inherited from CBCGPBaseVisualCtrl
 CloseActivePopupCloses active popup (created by CBCGPBaseVisualCtrl::CreatePopup) visual control.
 
 HasActivePopupTells whether a popup (created by CBCGPBaseVisualCtrl::CreatePopup) visual control is active.
 
- Protected Member Functions inherited from CBCGPGestureBase
 OnGestureEventBeginCalled by the framework to handle BCGP_GID_BEGIN notification.
 
 OnGestureEventEndCalled by the framework to handle BCGP_GID_END notification.
 
 ProcessGestureEventThis method should be called from WM_GESTURE message handler.