Splitter_Create

<< Click to Display Table of Contents >>

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

Splitter_Create

 

Description

 

Create a new Splitter control inside a dialog.

 

Syntax

 

hndl = Splitter_Create (hwnd, ctrlID, Direction, xPos, yPos, Width, Height)

 

Returns

 

Number

Control window handler.

 

Parameters

 

Name

Type

Optional

Meaning

hwnd

Number

No

Handle of the dialog containing the control

ctrlID

Number

No

Control identifier

Direction

Number

Yes

Indicates if Splitter control has vertical or horizontal direction.

Use one of the following equates:

%SWS_HORIZONTAL

%SWS_VERTICAL

xPos

Number

No

Horizontal position of the control inside the dialog

yPos

Number

No

Vertical position of the control inside the dialog

Width

Number

No

Control width

Height

Number

No

Control height

 

Remarks

 

If xPos, yPos, Width, Height are all zero, Splitter control will be automatically adjusted to the current dialog client area.

 

Restrictions

 

See also

 

Examples