CMovieButton

#include <vstcontrols.h>

class CMovieButton : public CControl;

A movie button is a bi-states button with 2 subpixmaps. These subpixmaps are stacked in the pixmap.


CMovieButton

1.0

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

Creates a movie button.

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 pixels.
handle The pixmap.
offset -

[source] source


~CMovieButton

1.0

~CMovieButton ();

Destroys a movieButton 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.