Splitter_SetSplitPosPct

<< Click to Display Table of Contents >>

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

Splitter_SetSplitPosPct

 

Description

 

Define the position of the splitter bar in percentage.

 

Syntax

 

n = Splitter_SetSplitPosPct (hwnd, ctrlID, PctPos)

 

Returns

 

Number

Previous position.

 

Parameters

 

Name

Type

Optional

Meaning

hwnd

Number

No

Handle of the dialog containing the control

ctrlID

Number

No

Control identifier

PctPos

Number

No

Percentage position (from the left or upper edge) where to set the split bar

 

Remarks

 

If PctPos value is < 0 or > 100, it will be set automatically to 50.

 

Restrictions

 

See also

 

Examples