Einhugur Framework for C++

PopupMenu Class



A drop down list control which lets the user select a item. The user can only select a item and not edit the items in this control.

Control
   PopupMenu

class PopupMenu

Constructors

PopupMenu

Methods

AppendAppends a item to the PopupMenu. This variation takes a text, Boolean parameter to decide if the item should be enabled or not and a integer parameter for custom item data.
AppendAppends a item to the PopupMenu. This variation takes a text and a Boolean parameter to decide if the item should be enabled or not.
AppendAppends a item to the PopupMenu. This variation takes a text as the only parameter.
AppendSeparatorAdds a separator to the bottom of the menu.
Close (Inherited)
ContainsPoint (Inherited)Returns true if the control contains the point at the given location.
CountReturns the count of menu items in the control.
GetBounds (Inherited)Gets the position and size of the control.
GetCheckCurrentItemReturns true if the the currently selected item is set to be marked in the menu.
GetControlHandle (Inherited)Returns the Mac ControlHandle for the control.
GetEnabled (Inherited)Returns true if the control is enabled.
GetHeight (Inherited)Returns the height of the control in pixels.
GetItemEnabledReturns true if the PopupMenu item at the given index is enabled.
GetPanelID (Inherited)Returns the panel ID for the control.
GetSelectedItemIndexReturns the index of the currently selected item.
GetVisible (Inherited)Returns true if the control has its visible flag set to true.
GetWidth (Inherited)Returns the width of the control in pixels.
GetWindowRef (Inherited)Returns a Mac WindowRef for the Window that the control lives on.
HandleMouseEnter (Inherited)
HandleMouseLeave (Inherited)
HandleMouseMove (Inherited)
HandleOpen (Inherited)
HandleSelectionChangedThis method is for internal use and for those who are inheriting from the control. To tap into the SelectionChangedEvent without using the Delegate.
HandleVisibilityChanged (Inherited)
IsVisibleOnTop (Inherited)Returns true if the controls visible flag is set to true and the control is on top most view panel if it lives on a TabPanel or other similar control.
LocalToScreenCoordinate (Inherited)This method converts a point that is local to the control to a point that is local to the screen.
LocalToWindowCoordinate (Inherited)This method converts a point that is local to the control to a point that is local to the window.
ParentResized (Inherited)
Release (Inherited)Decreases reference count by one and deletes the object if the reference count reached zero.
RemoveRemoves a item at a given index from the PopUpMenu.
RemoveAllRemoves all items from the PopupMenu.
Retain (Inherited)Increases the reference count by one.
SetAnchor (Inherited)This method anchors the control to given sides of its parent container.
SetBounds (Inherited)Sets the position and size of the control.
SetCheckCurrentItemIf set to true then the currently selected item will be marked in the menu.
SetEnabled (Inherited)Enables or disables the control.
SetFocus (Inherited)
SetItemEnabledEnables or disables a item in the PopupMenu.
SetPanelID (Inherited)Sets panel ID for the control.
SetPanelVisibility (Inherited)
SetPosition (Inherited)
SetSelectedItemIndexSets the currently selected item.
SetSize (Inherited)Sets the size of the control.
SetVisible (Inherited)Shows or hides the control.
WindowToLocalCoordinate (Inherited)Translates a coordinate that is relative to the Window to a coordinate that is relative to the control.

Events

CloseEvent (Inherited)This event is fired when the control is closing.
MouseEnterEvent (Inherited)This event is fired when the control is about to get displayed.
MouseLeaveEvent (Inherited)This event is fired when the mouse leaves the control.
MouseMoveEvent (Inherited)
OpenEvent (Inherited)This event is fired when the control is about to get displayed.
SelectionChangedEventThis event is fired when the selection changes.