GH_DigitScroller
GH_TextInputBaseControlUserControlContainerControlScrollableControlControlComponentMarshalByRefObjectProvides the standard Grasshopper Digit scroller as a winforms Control.
Constructors
GH_DigitScroller
#public GH_DigitScroller()
Properties
AllowRadixDrag
#Gets or sets whether the radix symbol can be dragged.
AllowTextInput
#Gets or sets whether the control accepts text input override.
DecimalPlaces
#Gets or sets the number of decimal places.
DigitAlign
#[Category("Display")]
[DefaultValue(GH_DigitAlign, "Center")]
public GH_DigitAlign DigitAlign { get; set; }
Gets or sets the digit align mode
Digits
#Gets or sets the number of digits displayed in the scroller.
IsTextInputActive
Gets whether the text input override is currently displayed.
MaximumValue
#Gets or sets the upper bound of the scroll value.
MinimumValue
#Gets or sets the lower bound of the scroll value.
ShowTextInputOnDoubleClick
[Category("Text Input")]
[DisplayName("Show on DoubleClick")]
[Description("Show the text input override on double click events")]
public bool ShowTextInputOnDoubleClick { get; set; }
Gets or sets whether this control displays the text input override on a double mouse click.
ShowTextInputOnKeyDown
[Category("Text Input")]
[DisplayName("Show on KeyDown")]
[Description("Show the text input override on keydown events")]
public bool ShowTextInputOnKeyDown { get; set; }
Gets or sets whether this control displays the text input override on a key down event.
Methods
Parameters:
| disposing (bool) |
Overrides: ContainerControl.Dispose
HideTextInput
protected void HideTextInput()
Input_Parse
#Parameters:
| text (string) |
Overrides: GH_TextInputBaseControl.Input_Parse
ShowTextInput
protected void ShowTextInput()
Events
ValueChanged
#public event GH_DigitScroller.ValueChangedEventHandler ValueChanged