Fields
m_focus_item
#protected GH_RibbonItem m_focus_item
Properties
ActiveObject
#Gets or sets the Active object. The active object can be any class which implements the IGH_RibbonInteractiveObject interface. Under normal circumstances it will most likely be a RibbonItem or a class derived from RibbonItem.
ActiveTabIndex
#Gets or sets the current tab index.
Remarks: Invalid indices will result in exceptions
Returns: The index of the first active tab or -1 if no active tab can be found
Tabs
#Gets the tabs collection.
Remarks: Do not modify this collection, use AddTab, RemoveTab... methods instead
Methods
AmIFocused
#DetermineFocusItem
#FindAndDisplayProxy
#Iterates over all tabs and panels to try and find the icon with the associated proxy id.
public bool FindAndDisplayProxy()
id,
ID of proxy to search for.
ref Rectangle
tabBox,
The tab rectangle (in screen space).
ref Rectangle
iconbox,
The icon rectangle (in screen space).
dropdown
The dropdown window if shown.
Returns: Rectangle of proxy icon or Rectangle.Empty if the icon could not be found. Rectangle is defined in screen coordinates, not control coordinates.
LayoutRibbon
#public void LayoutRibbon()
PopulateRibbon
#Populate the entire Ribbon control from scratch. Call this function when you make a change to the state of the component library or ribbon layouts.
public void PopulateRibbon()