Provides Numeric digit scrolling GUI not tied to a control-handle.
Constructors
GH_DigitScrollerBase
#public GH_DigitScrollerBase()
Properties
AmplifyMotion
#Gets or sets a value indicating whether vertical mouse drags should be amplified as the mouse moves further and further.
BackgroundGradient
#Gets or sets the background Gradient. If the gradient is not null, it overrides the background colours.
BottomColour
#public Color BottomColour { get; set; }
Gets or sets the colour used along the bottom edge of the control.
Bounds
#public override Rectangle Bounds { get; set; }
Gets or sets the Bounds for this scroller.
Overrides: GH_TextBoxInputBase.Bounds
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.
Font
public virtual Font Font { get; set; }
Gets or sets the Font to use in this control.
PrefixBox
#public Rectangle PrefixBox { get; }
Gets the box containing the prefix string. If there is no prefix the PrefixBox will be Rectangle.Empty
RadixBox
#public Rectangle RadixBox { get; }
Gets the Radix box for this control, if there is no radix box, Rectangle.Empty will be returned.
ScrollBoxes
#Gets all scroll boxes (from left to right) for this control, not including the radix box.
SuffixBox
#public Rectangle SuffixBox { get; }
Gets the box containing the suffix string. If there is no suffix the PrefixBox will have zero width
TextColour
#public Color TextColour { get; set; }
Gets or sets the colour used for the text inside the scrolls.
TopColour
#public Color TopColour { get; set; }
Gets or sets the colour used along the top edge of the control.
Methods
HandleTextInputAccepted
#Parameters:
| text (string) |
Overrides: GH_TextBoxInputBase.HandleTextInputAccepted
HideTextInputBox
public void HideTextInputBox()
Hides the text-input override form (if it is displayed).
MouseDown
#Respond to mouse-down events.
Parameters:
| args (MouseEventArgs) | Mouse Event arguments. |
| pt (PointF) | Mouse cursor position in floating point accuracy. |
Returns: True if a Drag operation was started, false if the event went unnoticed.
MouseMove
#Respond to mouse-move events.
Parameters:
| args (MouseEventArgs) | Mouse Event arguments. |
| pt (PointF) | Mouse cursor position in floating point accuracy. |
Returns: True if a Drag operation was performed, false if the event went unnoticed.
MouseUp
#Respond to mouse-up events.
Parameters:
| args (MouseEventArgs) | Mouse Event arguments. |
| pt (PointF) | Mouse cursor position in floating point accuracy. |
Returns: True if a Drag operation was terminated, false if the event went unnoticed.
OnValueChanged
#Raise the ValueChanged event.
Parameters:
| intermediate (bool) | Set the intermediate state of the event arguments. |
RespondToEnter
Implements: RespondToEnter
RespondToEscape
Implements: RespondToEscape
SetupScroller
#Set the minimum, maximum and value fields simultaneously.
ShowTextInputBox
#ShowTextInputBox
#ShowTextInputBox
Display a floating text-box on top of the owner control.
Parameters:
| owner (Control) | Control that owns this slider. The coordinates of the Bounds rectangle must be specified in owner coordinates. |
| content (string) | |
| selectContent (bool) | |
| limitToBoundary (bool) | 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. |
| transform (Matrix) | Transformation matrix to apply to pop up UI. |
ShowTextInputBox
Display a floating text-box on top of the owner control.
Parameters:
| owner (Control) | Control that owns this slider. The coordinates of the Bounds rectangle must be specified in owner coordinates. |
| content (string) | |
| selectContent (bool) | |
| limitToBoundary (bool) | 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. |
ShowTextInputBox
Display a floating text-box on top of the owner control.