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.
public IGH_RibbonInteractiveObject ActiveObject { get; set; }

ActiveTab

#
Getsor sets the first active tab or Null is no active tab is defined
public GH_RibbonTab ActiveTab { get; set; }

ActiveTabIndex

#
Gets or sets the current tab index.
public int ActiveTabIndex { get; set; }
Remarks: Invalid indices will result in exceptions
The index of the first active tab or -1 if no active tab can be found

ActiveTabName

#
Gets or sets the active tab by name.
public string ActiveTabName { get; set; }

IsActiveObject

#
public bool IsActiveObject { get; }

Tabs

#
Gets the tabs collection.
public List<GH_RibbonTab> Tabs { get; }
Remarks: Do not modify this collection, use AddTab, RemoveTab... methods instead

TooltipDelay

#
public int TooltipDelay { get; set; }

Methods

AmIFocused

#
public bool AmIFocused()

CreateRibbonLayoutMenu

#
public ToolStripDropDown CreateRibbonLayoutMenu()

DetermineFocusItem

#
protected GH_Ribbon.GH_RibbonControlFocusResult DetermineFocusItem()

Dispose

#
protected override void Dispose(
disposing
)

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

NearestHeight

#
public int NearestHeight(
initialHeight
)
NearestHeight

NearestWidth

#
public int NearestWidth(
w
)
NearestWidth

OnPaint

#
protected override void OnPaint()
Control.OnPaint

OnPaintBackground

#
protected override void OnPaintBackground()

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

RenderFocusRectangle

#
public void RenderFocusRectangle()