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

Splitter_SetSplitPosPct

Previous pageReturn to chapter overviewNext page

 

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