AddDropButton |
Adds a DropButton or SplitButton to a band.
Prototype:
AddDropButton(LONG BandID, LONG ID, STRING Caption, <STRING IconName>, ULONG Flags=0, <LONG InsertAfterID>)
Arguments:
BandID |
ID of the band the control should be added to |
ID |
The unique ID of this control |
Caption |
Text for this control |
IconName |
Optional. Icon name |
Flags |
Optional. Flags to modify behaviour. Can be one or more of the following: PTB:BTN_DISABLED Control is initially disabled PTB:BTN_HIDE Control is hidden PTB:BTN_SPLIT DropButton is split-button |
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: