CKickButton

#include <vstcontrols.h>

class CKickButton : public CControl;

Define a button with 2 states using 2 subpixmaps. One click on it, then the second subpixmap is displayed. When the mouse button is relaxed, the first subpixmap is framed.


CKickButton

1.0

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

Creates a kick button object.

size The enclosing rectangle, in relative to the parent frame.
listener The object responsible for handling events in this control.
tag The index of the control
heightOfOneImage The height of one image, in pixel.
handle The pixmap containing the images of the two different states.
offset -

[source] source


~CKickButton

1.0

~CKickButton ();

Destroys a kickButton 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 drawn.

[source] source


mouse

1.0

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

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

[source] source


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