TrackBar_SetPos

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > Trackbar control > Trackbar Control Commands >

TrackBar_SetPos

 

Description

 

Sets the current logical position of the slider in a trackbar.

 

Syntax

 

n = TrackBar_SetPos(hWnd, ctrlID, lPos)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog containing the control

ctrlID

Number

No

Control identifier assigned to the control during CONTROL ADD ...

lPos

Number

No

New logical position of the slider. Valid logical positions are the integer values in the trackbar's range of minimum to maximum slider positions. If this value is outside the control's maximum and minimum range, the position is set to the maximum or minimum value.

 

Remarks

 

Restrictions

 

See also

 

Examples