AddBand

Return to Introduction  Previous page  Next page

Add a band to the toolbar. You must add a band to be able to add controls. Each band is a container for other toolbar controls.

 

Prototype:

AddBand(LONG ID, ULONG Flags=0, <STRING BandName>, LONG nType=0)

 

Arguments:

ID

The ID for this band. Must be unique

Flags

Flags that modifies look and behaviour of the band. This can be one or more of the following flags:

 

PTB:BAND_LASTONLINE Forces the next band to start on the next row

 

PTB:BAND_ICONSABOVE Place icons above text on buttons

 

PTB:BAND_HIDETEXT  Do not show button text

 

PTB:BAND_HIDEICONS  Do not show button icons

 

PTB:BAND_FULL  Band extends to full width of the toolbar (this forces LASTONLINE)

 

PTB:BAND_HIDE  Band starts hidden

 

PTB:BAND_FLAT  Band is drawn flat (no borders)

 

PTB:BAND_NOGRIP  Do not draw band gripper

 

PTB:BAND_NOCUSTOMIZE  Do not draw band customize area (ignored when style isn't OFFICE2003)

BandName

Optional, A string containing a name to use in the customize list. If this name is omitted, the band will not be shown in the customize list.

nType

Band type. Supported values: PTB:BT_NORMAL, PTB:BT_TABS and PTB:BT_HEADER. Defaults to PTB:BT_NORMAL.

 

See also:

DeleteBand

 

Example:

Toolbar1.AddBand(ID_MYBAND, PTB:BAND_LASTONLINE + PTB:BAND_FLAT)

 



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