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

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

Highlight

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

HighlightOnHover

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

Icon

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

Methods

FormHandleCreated

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

FormHandleDestroyed

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

PopulateTooltip

#
public abstract void PopulateTooltip(object sender, GH_TooltipDisplayEventArgs e)
Populate the tooltip.
sender (object)
e (GH_TooltipDisplayEventArgs)

RespondToMouseDown

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