CVerticalSlider

#include <vstcontrols.h>

class CVerticalSlider : public CSlider;

Define a vertical slider with a given background and handle. The range of variation of the handle should be defined. By default the handler is drawn with transparency (white color). By clicking Alt+Left Mouse the default value is used.

See also :


CVerticalSlider

1.0

CVerticalSlider (CRect &size, CControlListener *listener, long tag, long iMinPos, long iMaxPos, CBitmap *handle, CBitmap *bk, CPoint &offset, int style);

Creates a vertical slider object.

size The coordinates of the enclosing rectangle, relative to the parent frame.
listener The object responsible for handling events in this control. for this control.
tag The index of the control.
iMinPos The minimal vertical position of the slider, in pixel relative to the parent frame.
iMaxPos The maximal vertical position of the slider, in pixel relative to the parent frame.
handle The pixmap of the slider
bk The pixmap of the background.
offset The top-left point of the displayed area of the background, relative to the control.
style The style allows to define where the zero position is defined (kTop or kBottom (the default value)).

[source] source

CVerticalSlider

Example :

myFaderBodyPixmap
= new CBitmap (kFaderBodyPixmapID);
myFaderHandlePixmap
= new CBitmap (kFaderHandlePixmapID);
size (
kMyFader_left,
kMyFader_top,
kMyFader_left + myFaderBodyPixmap->getWidth (),
kMyFader_top + myFaderBodyPixmap->getHeight ()
);
int minPos = kMyFader_top;
int maxPos = kMyFader_top
+ myFaderBodyPixmap->getHeight ()
- myFaderHandlePixmap->getHeight () - 1;
CPoint offset (0, 0);
myFader = new CVerticalSlider (
size,
this,
kMyParameter,
minPos,
maxPos,
myFaderHandlePixmap,
myFaderBodyPixmap,
offset,
kBottom
);
myFader->setOffsetHandle (offset);
myFader->setValue (effect->getParameter (kMyParameter));
frame->addView (myFader);

CVerticalSlider

1.0

CVerticalSlider (CRect&size, CControlListener *listener, long tag, CPoint &offsetHandle, long rangeHandle, CBitmap *handle, CBitmap *bk, CPoint &offset, long style);

Creates a vertical slider object.

size The coordinates of the enclosing rectangle, relative to the parent frame.
listener The object responsible for handling events in this control. for this control.
tag The index of the control.
offsetHandle The offset of the handle.
rangeHandle The size of the handle range.
handle The pixmap of the slider
bk The pixmap of the background.
offset The top-left point of the displayed area of the background, relative to the control.
style The style allows to define where the zero position is defined (kTop or kBottom (the default value)).

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