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

ToolBar_AddSeparator

Previous pageReturn to chapter overviewNext page

 

Description

 

Add a separator to a ToolBar.

 

Syntax

 

n = ToolBar_AddSeparator(hWnd, ctrlID, Size [, AT Item])

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog containing the control

ctrlID

Number

No

Control identifier assigned to the control during CONTROL ADD ...

Size

Number

No

Size of the separator in pixels

Item

Number

Yes

If the optional "AT item&" clause is included, the button is inserted at the designated position (1=first, 2=second, etc.).  Otherwise, it is added to the end of the list.

 

Remarks

 

It may be used to separate and distinguish two adjacent button groups (%TBSTYLE_GROUP), or to just enhance the visual appearance.

 

Restrictions

 

See also

 

Examples