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

ScrollBar_SetRange

Previous pageReturn to chapter overviewNext page

 

Description

 

Set the minimum and maximum range for a ScrollBar control.

 

Syntax

 

n = Scrollbar_SetRange (hwnd, ctrlID, LoLimit, HiLimit)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

hwnd

Number

No

Handle of the dialog containing the control

ctrlID

Number

No

Control identifier

LoLimit

Number

No

Lower limit

HiLimit

Number

No

Upper limit

 

Remarks

 

When a new ScrollBar is created, the default ScrollBar range is 0 to 100.

 

Scrollbar is automatically redrawn after this command.

 

Restrictions

 

See also

 

Examples