CHorizontalSwitch

#include <vstcontrols.h>

class CHorizontalSwitch : public CControl;

Same as the CVerticalSwitch but horizontal.


CHorizontalSwitch

1.0

CHorizontalSwitch ( CRect &size, CControlListener *listener, long tag, long subpixmaps, long heightOfOneImage, long iMaxPositions, CBitmap *handle, CPoint &offset);

Creates a horizontal switch with a given number of positions.

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.
subpixmaps
The number of subpixmaps.
heightOfOneImage
The height of one subpixmap in pixel.
iMaxPositions

handle
The pixmap containing all the images.
offset
-

[CHorizontalSwitch]

[source] source


~CHorizontalSwitch

1.0

~CHorizontalSwitch ();

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

See also :


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