#include <rhinoSdkGumball.h>
◆ CRhinoGumballPopUpMenu()
CRhinoGumballPopUpMenu::CRhinoGumballPopUpMenu |
( |
| ) |
|
◆ GetCommandLineString()
static bool CRhinoGumballPopUpMenu::GetCommandLineString |
( |
ON_wString & |
value | ) |
|
|
static |
Description: Call this method to get the command line string to append to the top of the context menu. Parameters: value - [out] String to display. Returns: True if a string should be added and value is not empty.
◆ RespondToPopUpMenuItem()
Description: Handle the app settings menu items. Parameters: gb_menu_item - [in] gumball pop-up menu item to handle. Returns: True if gb_menu_item corresponds to an app settings item. In which case, the appropriate action is taken. False if gb_menu_item is a gumball specific item, like gb_menu_reposition, that applies to a single gumball.
◆ ShowPopUpMenu()
Description: Show the gumball popup menu. Parameters: wnd - [in] Parent window. Typically a status bar or a CRhinoView. point - [in] window coordinates of the lower left corner of the pop-up CRhinoGumball::GetPopUpMenuPoint() can be used to get the screen location of a gumball's menu ball. menu_ites - [in] bitfield that determine what items should appear on the pop-up menu. Use GUMBALL_POPUP_MENU_ITEM to set the bits. Returns: Selected item. The caller is responsible for actually doing something. The function RespondToPopUpMenuItem() can be used to handle the app settings menu items.