Table of Contents

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

double

DefaultSize

Natural size used when no explicit size is given.

protected override Size DefaultSize { get; }

Property Value

Size

ShowStepButtons

Shows the − / + buttons.

public bool ShowStepButtons { get; set; }

Property Value

bool

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

e MouseEventArgs

OnMouseUp(MouseEventArgs)

Mouse button released.

protected override void OnMouseUp(MouseEventArgs e)

Parameters

e MouseEventArgs

RenderVector(DrawingContext, Rect, VectorStyle)

Vector rendering of the widget area.

protected override void RenderVector(DrawingContext dc, Rect widget, VectorStyle style)

Parameters

dc DrawingContext
widget Rect
style VectorStyle

ValueArea(Rect)

Area of the value text inside the widget.

protected override Rect ValueArea(Rect widget)

Parameters

widget Rect

Returns

Rect