Navigation:  thinBasic Modules > UI (User Interface) > Dedicated Control Functions > SCROLLBAR control >

ScrollBar_SetPos

Previous pageReturn to chapter overviewNext page

 

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