Description |
Parent class: XControl
XSlider |
| XWindow * owner | the owner of the XSlider | ||||||||||||||||||||
| XRect * rect | the rectangle | ||||||||||||||||||||
| USHORT id | id of the window | ||||||||||||||||||||
| ULONG style | style, valid values are:
(can be or-ed) | ||||||||||||||||||||
| char * font | font to use, e.g. "8.Helv" |
Constructs a XSlider
AddDetent |
SHORT pos position of the detent
LONG the id of the detent
Add a detend to the primary scale
GetDetentPos |
LONG id of the detent
USHORT positionin pixels
Get position of a detent
RemoveDetent |
LONG the id of the detent to remove
Removes a detend from the primary scale
SetScales |
| USHORT scale1Incr | increments for scale 1 |
| USHORT scale1Space | spaceing between increments for scale 1 |
| USHORT scale2Incr | increments for scale 2 (default is 0) |
| USHORT scale2Space | spaceing between increments for scale 2 (default is 0) |
Set scales 1 or 2 (depending if SL_PRIMARYSCALE1 or SL_PRIMARYSCALE2 is set)
GetSliderPos |
LONG position
Returns the sliders position
SetSliderPos |
LONG pos the new position
Set the sliders position
SetShaftSize |
SHORT size new size of the shaft
Set the size of the shaft
SetSliderSize |
SHORT length length of the slider
SHORT breadth breadth
Set the size of the slider
SetTickSize |
SHORT tickNumber the tick to change (zero-based index)
SHORT tickLength length of the tick in pixels
Set the size of a tick
GetScaleText |
SHORT tickNumber the tick
XString* buffer buffer to hold the text
Get the text of a tick
SetScaleText |
SHORT tickNumber the tick to get the text (zero-based index)
char * text text to add
Add a text to a tick