Rhino C++ API  7.24
Public Member Functions | Static Public Member Functions | List of all members
CRhinoGumballPopUpMenu Class Reference

#include <rhinoSdkGumball.h>

Public Member Functions

 CRhinoGumballPopUpMenu ()
 

Static Public Member Functions

static bool RespondToPopUpMenuItem (GUMBALL_POPUP_MENU_ITEM gb_popup_menu_item)
 
static GUMBALL_POPUP_MENU_ITEM ShowPopUpMenu (HWND wnd, const ON_2iPoint &point, unsigned int menu_items)
 

Constructor & Destructor Documentation

◆ CRhinoGumballPopUpMenu()

CRhinoGumballPopUpMenu::CRhinoGumballPopUpMenu ( )

Member Function Documentation

◆ RespondToPopUpMenuItem()

static bool CRhinoGumballPopUpMenu::RespondToPopUpMenuItem ( GUMBALL_POPUP_MENU_ITEM  gb_popup_menu_item)
static

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()

static GUMBALL_POPUP_MENU_ITEM CRhinoGumballPopUpMenu::ShowPopUpMenu ( HWND  wnd,
const ON_2iPoint point,
unsigned int  menu_items 
)
static

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 reponsible for actually doing something. The function RespondToPopUpMenuItem() can be used to handle the app settings menu items.