GH_ScriptEditorButton
ReferencesInherit 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.
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
#Called once, when the script editor is created.
Parameters:
| window (GH_ScriptEditor) |
FormHandleDestroyed
#Called once, when the script editor is destroyed.
Parameters:
| window (GH_ScriptEditor) |
RespondToMouseDown
#Respond to a mouse down event.
Parameters:
| window (GH_ScriptEditor) | Script editor maintaining this button. |
| e (MouseEventArgs) | Mouse event arguments. |