[DefaultEvent("ValueChanged")] public class GH_DigitScroller : GH_TextInputBaseControl
Provides the standard Grasshopper Digit scroller as a winforms Control.

Constructors

GH_DigitScroller

#
public GH_DigitScroller()

Properties

AllowRadixDrag

#
[Category("Interaction")] public bool AllowRadixDrag { get; set; }
Gets or sets whether the radix symbol can be dragged.

AllowTextInput

#
[Category("Interaction")] public bool AllowTextInput { get; set; }
Gets or sets whether the control accepts text input override.

Amplify

#
[Category("Interaction")] [DefaultValue(false)] public bool Amplify { get; set; }
Gets or sets whether vertical mouse movement ought to be amplified.

DecimalPlaces

#
[Category("Numerics")] public int DecimalPlaces { get; set; }
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

#
[Category("Numerics")] public int Digits { get; set; }
Gets or sets the number of digits displayed in the scroller.

DigitScroller

#
public GH_DigitScrollerBase DigitScroller { get; }
Gets the internal scroller object.

Epsilon

#
public decimal Epsilon { get; }
Gets the smallest possible change with the current settings.

IsTextInputActive

[Browsable(false)] public bool IsTextInputActive { get; }
Gets whether the text input override is currently displayed.
inherited fromGH_TextInputBaseControl

MaximumValue

#
[Category("Numerics")] public decimal MaximumValue { get; set; }
Gets or sets the upper bound of the scroll value.

MinimumValue

#
[Category("Numerics")] public decimal MinimumValue { get; set; }
Gets or sets the lower bound of the scroll value.

Prefix

#
[Category("Display")] public string Prefix { get; set; }
Gets or sets the prefix text

Presets

#
[Browsable(false)] public GH_NumberPresets Presets { get; }
Gets the internal object that maintains numeric presets.

Radix

#
[Category("Numerics")] public int Radix { get; set; }
Gets or sets the radix point index.

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.
inherited fromGH_TextInputBaseControl

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.
inherited fromGH_TextInputBaseControl

Suffix

#
[Category("Display")] public string Suffix { get; set; }
Gets or sets the prefix text

Value

#
[Category("Numerics")] public decimal Value { get; set; }
Gets or sets the value of this scroller.

Methods

Dispose

protected override void Dispose(bool disposing)
inherited fromGH_TextInputBaseControl
disposing (bool)

HideTextInput

protected void HideTextInput()
inherited fromGH_TextInputBaseControl

Input_Assign

#
protected override void Input_Assign(string text)
text (string)

Input_Parse

#
protected override bool Input_Parse(string text)
text (string)

Input_Supply

#
protected override string Input_Supply()

OnPaint

#
protected override void OnPaint(PaintEventArgs e)
e (PaintEventArgs)
Control.OnPaint

OnPaintBackground

#
protected override void OnPaintBackground(PaintEventArgs e)

ShowTextInput

protected void ShowTextInput()
inherited fromGH_TextInputBaseControl

Events

ValueChanged

#
public event GH_DigitScroller.ValueChangedEventHandler ValueChanged