CSpecialDigit

#include <vstcontrols.h>

class CSpecialDigit : public CControl;

Can be used to display a counter with maximum 7 digits. All digit have the same size and are stacked in height in the pixmap.


takeFocus

1.0

CSpecialDigit ( CRect size, CControlListener *listener, long tag, long dwPos, long iNumbers, long *xpos, long *ypos, int width, int height, CBitmap *background);

Creates a special digit (like a counter) with a given initial value (dwPos).

size
The coordinates of the enclosing rectangle, relative to the parent frame.
listener
The object responsible for handling events in this control.
tag
The index of the control.
dwPos
The actual value.
iNumbers
The amount of digits (up to 7).
xpos
Array of horizontal positions in the frame.
ypos
Array of vertical positions in the frame.
width
The width of one digit.
height
The height of one digit.
background

A pixmap containing the numbers.

[source] source


~CSpecialDigit

1.0

~CSpecialDigit ();

Destroys a special digit object. The pixmap is destroyed if there is no more reference on it.

[source] source


draw

1.0

void draw (CDrawContext*);

Called when this control object needs to be drawed.

[source] source


getNormValue

1.0

float getNormValue (void);

Returns the current value normalized between 0 and 1.

[source] source


Copyright ©2003 Steinberg Media Technologies GmbH. All Rights Reserved.