ScrollBar_SetRange

<< Click to Display Table of Contents >>

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

ScrollBar_SetRange

 

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