Provides Numeric slider GUI not tied to a control-handle.

Properties

Bounds

#
Gets or sets the bounds of the slider.
[Category("Layout")] public override Rectangle Bounds { get; set; }

ControlBackColour

#
Gets or sets the BackColour for this slider control.
[Category("Colours")] public Color ControlBackColour { get; set; }

ControlEdgeColour

#
Gets or sets the EdgeColor for this slider control.
[Category("Colours")] public Color ControlEdgeColour { get; set; }

ControlShadowColour

#
Gets or sets the Shadow colour for this control.
[Category("Colours")] public Color ControlShadowColour { get; set; }

DecimalPlaces

#
Gets or sets the number of decimal places allowed for floating point type sliders. Valid values between zero and 12.
public int DecimalPlaces { get; set; }

DrawControlBackground

#
Gets or sets whether the background of the slider should be drawn.
public bool DrawControlBackground { get; set; }

DrawControlBorder

#
Gets or sets whether the border of the slider should be drawn.
public bool DrawControlBorder { get; set; }

DrawControlShadows

#
Gets or sets whether the drop shadows of the slider should be drawn.
public bool DrawControlShadows { get; set; }

Epsilon

#
Gets the smallest value change supported by the current slider properties.
[Category("Values")] public decimal Epsilon { get; }

Font

#
Gets or sets the font for this slider.
[Category("Display")] public override Font Font { get; set; }

FormatMask

#
Gets or sets the string format mask to use for the display. Should contain at least one "{0}" element.
[Category("Display")] public string FormatMask { get; set; }

Grip

#
Gets the box of the current grip. If the slider value/limits are not set up correctly then this rectangle may well be outside of the bounds. If the limits are coincident, this will fail (divide by zero).
public RectangleF Grip { get; }

GripBottomColour

#
Gets or sets the fill colour for the bottom edge of the slider grip.
[Category("Colours")] public Color GripBottomColour { get; set; }

GripDisplay

#
Gets or sets how the slider grip (or thumb) is drawn.
[Category("Display")] public GH_SliderGripDisplay GripDisplay { get; set; }

GripEdgeColour

#
Gets or sets the edge colour for the slider grip.
[Category("Colours")] public Color GripEdgeColour { get; set; }

GripText

#
Gets the text that will be drawn on the slider.
[Category("Layout")] public string GripText { get; }

GripTextPure

#
Gets the text format of the number of this slider value.
[Browsable(false)] public string GripTextPure { get; }

GripTopColour

#
Gets or sets the fill colour for the top edge of the slider grip.
[Category("Colours")] public Color GripTopColour { get; set; }

GripWidth

#
Gets an estimate of the maximum number of pixels taken up by the grip. This property depends on many different factors, though should remain constant when other properties are not changed. If the Font hasn't been specified, the default Windows.Forms.Control font is used.
[Category("Layout")] public int GripWidth { get; }

IsTextInput

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

Maximum

#
Gets or sets the upper limit of the slider.
[Category("Values")] public decimal Maximum { get; set; }

Minimum

#
Gets or sets the lower limit of the slider.
[Category("Values")] public decimal Minimum { get; set; }

NormalizedValue

#
Gets or sets the normalized value within the slider domain.
public double NormalizedValue { get; set; }

Padding

#
Gets or sets the padding around the slider border.
[Category("Layout")] public Padding Padding { get; set; }

Rail

#
Gets the shape of the rail. The height of the rectangle will be zero, but the y-position will be rounded to integer precision.
public Rectangle Rail { get; }

RailBrightColour

#
Gets or sets the bright colour used to draw rails and ticks.
public Color RailBrightColour { get; set; }

RailDarkColour

#
Gets or sets the dark colour used to draw rails and ticks.
public Color RailDarkColour { get; set; }

RailDisplay

#
Gets or sets how the slider rail (or track) is drawn.
[Category("Display")] public GH_SliderRailDisplay RailDisplay { get; set; }

RailEmptyColour

#
Gets or sets the fill colour for the empty portion of the rail.
[Category("Colours")] public Color RailEmptyColour { get; set; }

RailFullColour

#
Gets or sets the fill colour for the full portion of the rail.
[Category("Colours")] public Color RailFullColour { get; set; }

RaiseEvents

#
Gets or sets a value indicating whether this slider raises the ValueChanged event.
public bool RaiseEvents { get; set; }

RenderDelegate_Background

#
Gets or sets the delegate called after the background of the slider has been drawn.
[Browsable(false)] public GH_SliderBase.DrawSliderChannel RenderDelegate_Background { get; set; }

RenderDelegate_Border

#
Gets or sets the delegate called after the border of the slider has been drawn.
[Browsable(false)] public GH_SliderBase.DrawSliderChannel RenderDelegate_Border { get; set; }

RenderDelegate_Grip

#
Gets or sets the delegate called after the grip of the slider has been drawn.
[Browsable(false)] public GH_SliderBase.DrawSliderChannel RenderDelegate_Grip { get; set; }

RenderDelegate_Rail

#
Gets or sets the delegate called after the rail of the slider has been drawn.
[Browsable(false)] public GH_SliderBase.DrawSliderChannel RenderDelegate_Rail { get; set; }

RenderDelegate_Ticks

#
Gets or sets the delegate called after the ticks of the slider have been drawn.
[Browsable(false)] public GH_SliderBase.DrawSliderChannel RenderDelegate_Ticks { get; set; }

ShadowSize

#
Gets or sets the size of the border shadow along all edges of the box.
[Category("Display")] public Padding ShadowSize { get; set; }

SnapDistance

#
Gets or sets the snap distance in absolute values.
public decimal SnapDistance { get; set; }

TextColour

#
Gets or sets the fill colour for the slider text.
[Category("Colours")] public Color TextColour { get; set; }

TextInputHandlerDelegate

#
Gets or sets the custom handler for text input. If you do not set a custom handler the default behaviour will be used.
public GH_SliderBase.TextInputHandler TextInputHandlerDelegate { get; set; }

TickCount

#
Gets or sets the number of ticks displayed.
[Category("Display")] public int TickCount { get; set; }

TickDisplay

#
Gets or sets how the slider ticks are drawn.
[Category("Display")] public GH_SliderTickDisplay TickDisplay { get; set; }

TickFrequency

#
Gets or sets the frequency of large ticks vs small ticks.
[Category("Display")] public int TickFrequency { get; set; }

Ticks

#
Gets a list of all the tick offset x positions.
public List<int> Ticks { get; }

Type

#
Gets or sets the accuracy type of the slider.
public GH_SliderAccuracy Type { get; set; }

Value

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

ValueF

#
Gets or sets the value of the slider in single precision.
[Category("Values")] public float ValueF { get; set; }

Methods

FixDomain

#
Fix the limits of the slider. Limits will be rounded according to slider type and accuracy. Also, a minimum range for all types is ensured.
public void FixDomain()

FixValue

#
Fix the value of the slider. The value will be rounded according to slider type and accuracy. Also, the value will be clipped to the limits. Before you call this function, ensure the limits are set up correctly.
public void FixValue()

HandleTextInputAccepted

#
protected override void HandleTextInputAccepted(
text
)

HideTextInputBox

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

KeyDown

#
Respond to a KeyDown event.
public bool KeyDown(
args
KeyDown event arguments.
)
True if something changed, false if not.

MouseDown

#
Respond to mouse-down events.
public bool 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.

OnValueChanged

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

ProcessNumber

#
Process a number using the given slider characteristics.
public static decimal ProcessNumber(
val,
Number to process.
accuracy,
Slider rounding accuracy.
digits
Number of digits to use for floating point rounding.
)
Processed number.

Render

#
Render this slider into a Graphics context.
public void Render(
G
Graphics to render with.
)

SetSnapRanges

#
Assign a collection of snap ranges to this slider.
public void SetSnapRanges(
ranges
Ranges to snap to. Will override whatever snap ranges were defined before.
)

ShowTextInputBox

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

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

ValueChanged

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