GH_DigitScrollerBase

GH_TextBoxInputBaseReferences
Provides Numeric digit scrolling GUI not tied to a control-handle.

Constructors

GH_DigitScrollerBase

#
public GH_DigitScrollerBase()

Properties

AllowRadixDrag

#
Gets or sets a value indicating whether the radix is allowed to be dragged around.
public bool AllowRadixDrag { get; set; }

AllowTextInput

#
Gets or sets whether text input is allowed by double click.
public bool AllowTextInput { get; set; }

AmplifyMotion

#
Gets or sets a value indicating whether vertical mouse drags should be amplified as the mouse moves further and further.
public bool AmplifyMotion { get; set; }

BackgroundGradient

#
Gets or sets the background Gradient. If the gradient is not null, it overrides the background colours.
public GH_Gradient BackgroundGradient { get; set; }

BottomColour

#
Gets or sets the colour used along the bottom edge of the control.
public Color BottomColour { get; set; }

Bounds

#
Gets or sets the Bounds for this scroller.
public override Rectangle Bounds { get; set; }

DecimalPlaces

#
Gets or sets the number of decimal places available in this scroller. Unlike Radix, this property maintains the decimal position of the value represented by this scroller.
public int DecimalPlaces { get; set; }

DigitAlign

#
Gets or sets the digit align mode.
public GH_DigitAlign DigitAlign { get; set; }

Digits

#
Gets or sets the number of digits available in this scroller.
public int Digits { get; set; }

DrawBackground

#
Gets or sets whether the background is drawn in this control.
public bool DrawBackground { get; set; }

DrawBorder

#
Gets or sets whether the border is drawn in this control.
public bool DrawBorder { get; set; }

DrawShadows

#
Gets or sets whether shadows are drawn in this control.
public bool DrawShadows { get; set; }

EdgeColour

#
Gets or sets the edge colour of the control.
public Color EdgeColour { get; set; }

Epsilon

#
Gets the smallest possible change in the value.
public decimal Epsilon { get; }

Font

Gets or sets the Font to use in this control.
public virtual Font Font { get; set; }
inherited fromGH_TextBoxInputBase

IsTextInput

Gets whether the text input box is currently on screen.
public bool IsTextInput { get; }
inherited fromGH_TextBoxInputBase

MaximumValue

#
Gets or sets the upper bound of the scroll value.
public decimal MaximumValue { get; set; }

MinimumValue

#
Gets or sets the lower bound of the scroll value.
public decimal MinimumValue { get; set; }

Prefix

#
Gets or sets the prefix text to be displayed on the scroller.
public string Prefix { get; set; }

PrefixBox

#
Gets the box containing the prefix string. If there is no prefix the PrefixBox will be Rectangle.Empty
public Rectangle PrefixBox { get; }

Radix

#
Gets or sets the radix index of this scroller.
public int Radix { get; set; }

RadixBox

#
Gets the Radix box for this control, if there is no radix box, Rectangle.Empty will be returned.
public Rectangle RadixBox { get; }

RailColour

#
Gets or sets the colour used for the rail line.
public Color RailColour { get; set; }

RaiseEvents

#
Gets or sets whether this scroller raises the ValueChanged event.
public bool RaiseEvents { get; set; }

ScrollBoxes

#
Gets all scroll boxes (from left to right) for this control, not including the radix box.
public List<Rectangle> ScrollBoxes { get; }

ShadowColour

#
Gets or sets the colour used for the shadows.
public Color ShadowColour { get; set; }

ShadowSize

#
Gets or sets the size of the drop shadow along all four edges.
public Padding ShadowSize { get; set; }

SignBox

#
Gets the Sign box for this control.
public Rectangle SignBox { get; }

Suffix

#
Gets or sets the suffix text to be displayed on the scroller.
public string Suffix { get; set; }

SuffixBox

#
Gets the box containing the suffix string. If there is no suffix the PrefixBox will have zero width
public Rectangle SuffixBox { get; }

TextColour

#
Gets or sets the colour used for the text inside the scrolls.
public Color TextColour { get; set; }

TopColour

#
Gets or sets the colour used along the top edge of the control.
public Color TopColour { get; set; }

Value

#
Gets or sets the value displayed in this scroller.
public decimal Value { get; set; }

Methods

HandleTextInputAccepted

#
protected override void HandleTextInputAccepted(
text
)

HideTextInputBox

Hides the text-input override form (if it is displayed).
public void HideTextInputBox()
inherited fromGH_TextBoxInputBase

MouseDown

#
Respond to mouse-down events.
public GH_DigitScrollerBase.GH_MouseAction MouseDown(
args,
Mouse Event arguments.
PointF
pt
Mouse cursor position in floating point accuracy.
)
True if a Drag operation was started, false if the event went unnoticed.

MouseMove

#
Respond to mouse-move events.
public bool MouseMove(
args,
Mouse Event arguments.
PointF
pt
Mouse cursor position in floating point accuracy.
)
True if a Drag operation was performed, false if the event went unnoticed.

MouseUp

#
Respond to mouse-up events.
public bool MouseUp(
args,
Mouse Event arguments.
PointF
pt
Mouse cursor position in floating point accuracy.
)
True if a Drag operation was terminated, false if the event went unnoticed.

OnInvalidated

#
Raise the Invalidated event.
public void OnInvalidated()

OnValueChanged

#
Raise the ValueChanged event.
public void OnValueChanged(
intermediate
Set the intermediate state of the event arguments.
)

Render

#
Render all UI elements.
public void Render(
G
Graphics object to draw with.
)

SetupScroller

#
Set the minimum, maximum and value fields simultaneously.
public void SetupScroller(
minimum,
maximum,
value
)

ShowTextInputBox

#
public void ShowTextInputBox(
Control
owner,
limitToBoundary,
Matrix
transform
)

ShowTextInputBox

#
public void ShowTextInputBox(
Control
owner,
limitToBoundary
)

ShowTextInputBox

Display a floating text-box on top of the owner control.
public void ShowTextInputBox(
Control
owner,
Control that owns this slider. The coordinates of the Bounds rectangle must be specified in owner coordinates.
content,
selectContent,
limitToBoundary,
If True, the pop up input box will be 'clipped' to the owner boundary. At least some part of the slider must be visible for this to work.
Matrix
transform
Transformation matrix to apply to pop up UI.
)
inherited fromGH_TextBoxInputBase

ShowTextInputBox

Display a floating text-box on top of the owner control.
public void ShowTextInputBox(
Control
owner,
Control that owns this slider. The coordinates of the Bounds rectangle must be specified in owner coordinates.
content,
selectContent,
limitToBoundary
If True, the pop up input box will be 'clipped' to the owner boundary. At least some part of the slider must be visible for this to work.
)
inherited fromGH_TextBoxInputBase

ShowTextInputBox

Display a floating text-box on top of the owner control.
public void ShowTextInputBox(
Control
owner,
Control that owns this slider. The coordinates of the Bounds rectangle must be specified in owner coordinates.
content,
selectContent
)
inherited fromGH_TextBoxInputBase

ShowTextInputBox

#
public void ShowTextInputBox(
Control
owner
)

Events

Invalidated

#
Raised whenever the display of this scroller is changed, but not the value.
public event GH_DigitScrollerBase.InvalidatedEventHandler Invalidated

ValueChanged

#
Raised whenever the value of this scroller is changed due to User-Interface methods.
public event GH_DigitScrollerBase.ValueChangedEventHandler ValueChanged