Description


Include file: xslider.h

Parent class: XControl

Overview

Functions

XSlider

Parameters

XWindow * owner the owner of the XSlider
XRect * rect the rectangle
USHORT id id of the window
ULONG style style, valid values are:
SL_HORIZONTAL
SL_VERTICAL
SL_CENTER
SL_BOTTOM
SL_TOP
SL_LEFT
SL_RIGHT
SL_SNAPTOINCREMENT
SL_BUTTONSBOTTOM
SL_BUTTONSTOP
SL_BUTTONSLEFT
SL_BUTTONSRIGHT
SL_READONLY
SL_RIBBONSTRIP
SL_HOMEBOTTOM
SL_HOMETOP
SL_HOMELEFT
SL_HOMERIGHT
SL_PRIMARYSCALE1
SL_PRIMARYSCALE2

(can be or-ed)
char * font font to use, e.g. "8.Helv"

Remarks

Constructs a XSlider

AddDetent

Parameters

SHORT pos position of the detent

Return-Value

LONG the id of the detent

Remarks

Add a detend to the primary scale

GetDetentPos

Parameters

LONG id of the detent

Return-Value

USHORT positionin pixels

Remarks

Get position of a detent

RemoveDetent

Parameters

LONG the id of the detent to remove

Remarks

Removes a detend from the primary scale

SetScales

Parameters

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)

Remarks

Set scales 1 or 2 (depending if SL_PRIMARYSCALE1 or SL_PRIMARYSCALE2 is set)

GetSliderPos

Return-Value

LONG position

Remarks

Returns the sliders position

SetSliderPos

Parameters

LONG pos the new position

Remarks

Set the sliders position

SetShaftSize

Parameters

SHORT size new size of the shaft

Remarks

Set the size of the shaft

SetSliderSize

Parameters

SHORT length length of the slider
SHORT breadth breadth

Remarks

Set the size of the slider

SetTickSize

Parameters

SHORT tickNumber the tick to change (zero-based index)
SHORT tickLength length of the tick in pixels

Remarks

Set the size of a tick

GetScaleText

Parameters

SHORT tickNumber the tick
XString* buffer buffer to hold the text

Remarks

Get the text of a tick

SetScaleText

Parameters

SHORT tickNumber the tick to get the text (zero-based index)
char * text text to add

Remarks

Add a text to a tick


This document was generated by Jens von Pilgrim's Autodoc