GH_ScriptEditorButton

References
public abstract class GH_ScriptEditorButton
Inherit from this class if you want to add custom buttons to a GH_ScriptEditor toolbar.

Properties

Bounds

#
Gets or sets the bounds of this button. Bounds are set and read by the script window layour mechanism.
public Rectangle Bounds { get; set; }

Highlight

#
Gets whether this button should have a highlight drawn regardless of mouse hover state.
public virtual bool Highlight { get; }

HighlightOnHover

#
Gets whether this button should be highlighted when the mouse moves over it.
public virtual bool HighlightOnHover { get; }

Icon

#
Gets the 24x24 image icon for this button. This property is called on every redraw so make it spiffy.
public abstract Bitmap Icon { get; }

Methods

FormHandleCreated

#
Called once, when the script editor is created.
public virtual void FormHandleCreated()

FormHandleDestroyed

#
Called once, when the script editor is destroyed.
public virtual void FormHandleDestroyed()

PopulateTooltip

#
Populate the tooltip.
public abstract void PopulateTooltip()

RespondToMouseDown

#
Respond to a mouse down event.
public virtual void RespondToMouseDown(
window,
Script editor maintaining this button.
e
Mouse event arguments.
)