CRockerSwitch

#include <vstcontrols.h>

class CRockerSwitch : public CControl;

Define a rocker switch with 3 states using 3 subpixmaps. One click on its leftside, then the first subpixmap is displayed. One click on its rightside, then the third subpixmap is displayed. When the mouse button is relaxed, the second subpixmap is framed.


CRockerSwitch

1.0

CRockerSwitch (CRect &size, CControlListener *listener, long tag, long heightOfOneImage, CBitmap *handle, CPoint &offset, long style = kHorizontal);

Creates a rocker switch object.

[source] source


~CRockerSwitch

1.0

~CRockerSwitch ();

Destroys a rockerSwitch 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


mouse

1.0

void mouse (CDrawContext *context, CPoint &where);

Called when there is a mouse-click inside this control object.

[source] source


onWheel

2.1

void onWheel (CDrawContext*context, CPoint &where, float distance);

[source] source


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