#include <vstcontrols.h>
Inheritance diagram for CVerticalSwitch:
Public Member Functions | |
CVerticalSwitch (const CRect &size, CControlListener *listener, long tag, CBitmap *background, CPoint &offset) | |
CVerticalSwitch (const CRect &size, CControlListener *listener, long tag, long subPixmaps, CCoord heightOfOneImage, long iMaxPositions, CBitmap *background, CPoint &offset) | |
virtual | ~CVerticalSwitch () |
virtual void | draw (CDrawContext *) |
called if the view should draw itself | |
virtual void | mouse (CDrawContext *pContext, CPoint &where, long button=-1) |
called if a mouse click event occurs | |
Protected Attributes | |
CPoint | offset |
long | subPixmaps |
CCoord | heightOfOneImage |
long | iMaxPositions |
Define a switch with a given number of positions, the current position is defined by the position of the last click on this object (the object is divided in its height by the number of position). Each position has its subpixmap, each subpixmap is stacked in the given handle pixmap. By clicking Alt+Left Mouse the default value is used.
|
|
|
|
|
|
|
called if the view should draw itself
Implements CControl. |
|
called if a mouse click event occurs
Reimplemented from CView. |
|
|
|
|
|
|
|
|