Class NumberBox
- Namespace
- PluginUI
- Assembly
- PluginUI.dll
Numeric box: drag vertically to change (Shift = fine), wheel, arrows, double-click or Enter to type,
optional − / + step buttons with auto-repeat. iPlug2 IVNumberBoxControl.
public class NumberBox : ValueDisplay
- Inheritance
-
NumberBox
- Inherited Members
Constructors
NumberBox()
Creates a number box.
public NumberBox()
Properties
ButtonStep
Normalized step of the buttons for continuous values (discrete values step by one state).
public double ButtonStep { get; set; }
Property Value
DefaultSize
Natural size used when no explicit size is given.
protected override Size DefaultSize { get; }
Property Value
ShowStepButtons
Shows the − / + buttons.
public bool ShowStepButtons { get; set; }
Property Value
Methods
OnCaptureLost()
The mouse capture was lost without a button release.
protected override void OnCaptureLost()
OnDetached()
Called when the element leaves its host (unsubscribe here).
protected override void OnDetached()
OnMouseDown(MouseEventArgs)
Mouse button pressed over the element (or captured).
protected override void OnMouseDown(MouseEventArgs e)
Parameters
OnMouseUp(MouseEventArgs)
Mouse button released.
protected override void OnMouseUp(MouseEventArgs e)
Parameters
RenderVector(DrawingContext, Rect, VectorStyle)
Vector rendering of the widget area.
protected override void RenderVector(DrawingContext dc, Rect widget, VectorStyle style)
Parameters
dcDrawingContextwidgetRectstyleVectorStyle
ValueArea(Rect)
Area of the value text inside the widget.
protected override Rect ValueArea(Rect widget)
Parameters
widgetRect