Einhugur Framework for C++

PopupGroupBox Class

Group boxes, like separators, are used to break a window into distinct logical areas. A group box provides a more pronounced separation than a separator. Use a group box when you want a set of controls to be perceived as a single element. Avoid putting too many controls in group boxes so they don't look cluttered.

The PopupGroupBox is in many ways like a TabPanel as it allows you to switch views/tabs. The difference is that the PopupGroupBox does it with a PopUpMenu instead of Tabs.

There are many cases where a PopupGroupBox is more suitable than a TabPanel, especially if you have a small window but many views/tabs.





ContainerControl
   PopupGroupBox

class PopupGroupBox

Constructors

PopupGroupBox

Methods

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.
Controls (Inherited)
CountReturns the count of menu items in the PopupMenu on the GroupBox.
GetBounds (Inherited)Gets the position and size of the control.
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 in the PopupMenu.
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)
HandleOpenThis method is for internal use and for those who are inheriting from the control. To tap into the Layout construction of the control.
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.
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 in the PopupMenu.
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.