<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > ScrollBar Control > ScrollBar Control Commands > ScrollBar_SetPos |
Description
Set the current position in a ScrollBar control.
Syntax
n = Scrollbar_SetPos (hwnd, ctrlID, nPos)
Returns
Number: position before change
Parameters
Name |
Type |
Optional |
Meaning |
hwnd |
Number |
No |
Handle of the dialog containing the control |
ctrlID |
Number |
No |
Control identifier |
nPos |
Number |
No |
New position |
Remarks
Scrollbar is automatically redrawn after this command.
Restrictions
See also
Examples