AddCombo

Return to Introduction  Previous page  Next page

Adds a DropCombo to a band. A DropCombo typically has several combo items the user can choose from. However, text can freely be entered into the entry part of the control. To avoid this, specify the PTB:BTN_READONLY flag.

 

Prototype:

AddCombo(LONG BandID, LONG ID, STRING Txt, LONG Flags=0, <LONG InsertAfterID>)

 

Arguments:

BandID

ID of the band the control should be added to

ID

The unique ID of this control

Txt

The default text for the entry part of the control

Flags

Optional. button style flags. Can be one or more of the following flags:

PTB:BTN_DISABLED Control is initially disabled

PTB:BTN_HIDE           Control is hidden

PTB:BTN_READONLY Control is read only

InsertAfterID

Optional. Control should be inserted after the control with InsertAfter-ID. If you specify 0 as InsertAfterID, the control will be inserted first in band.

 

See also:

AddComboItem, AddBand

 

Example:

Toolbar1.AddCombo(TB_SomeBand, ID_DropCombo1, 'Hello world!', PTB:BTN_READONLY)

 

 

 



Direct link to this page on our website: http://www.icetips.com/manuals/powertoolbar/addcombo.htm