User Tools

Site Tools


Sidebar

<< Back


koda:en:documentation:control_toolbar

Toolbar

{|class=“cboxtable”

class=“cboxcell1”
class=“cboxcell2”

Creates an Toolbar control

See the tutorial Creating a Toolbar

#remarks_header[Properties:]#

ImagesAn attached ImageList control
NameName of control and of the variable that is assigned its handle in generated code. If not specified, no variable is generated .

#remarks_header[Styles:]#

TBSTYLE_WRAPABLEToolbar can have multiple rows of buttons
TBSTYLE_FLATButtons are two-dimensional
TBSTYLE_TRANSPARENTToolbar is transparent, but the buttons are not. Button text appears under images
WS_TABSTOPControl can be selected with Tab and Shift+Tab
WS_HSCROLLControl has horizontal scroll bar
WS_VSCROLLControl has vertical scroll bar
WS_VISIBLEControl is visible
WS_BORDERControl has a thin-line border
WS_CLIPSIBLINGSIf this control overlaps with another, this control shows partially

#remarks_header[Extra Styles:]#

TBSTYLE_EX_DRAWDDARROWSAllows buttons to have separate drop-down arrow. Buttons with BTNS_DROPDOWN are drawn with a drop-down arrow in a separate section, to the right of the button. If the arrow is clicked, only the arrow portion of the button will depress, and the toolbar control will send a TBN_DROPDOWN notification to prompt the script to display the dropdown menu. If the main part of the button is clicked, the toolbar control sends a WM_COMMAND message with the button's ID
TBSTYLE_EX_DOUBLEBUFFERDouble buffering detects when a toolbar has changed
WS_EX_CLIENTEDGEControl has border with sunken edge
WS_EX_STATICEDGEControl has a three-dimensional border

#remarks_header[Buttons:]#

Each button has its own properties:

LeftPosition of button relative to left side of toolbar.
NameName of control and of the variable that is assigned its handle in generated code. If not specified, no variable is generated .
StyleStyle of toolbutton:
tbsButton - regular toolbutton
tbsCheck - checkbutton
tbsSeparator - separator (empty space) between buttons
tbsDropdown - button with drop-down menu
The screen shot shows buttons with styles in this order.

#remarks_header[Styles:]#

BTNS_AUTOSIZEButton's width will be calculated based on the width of the text plus the image on the button, rather than being the standard width
BTNS_WHOLEDROPDOWNButton will have a drop down arrow, but not as a separate section. TBSTYLE_EX_DRAWDDARROWS is irrelevant

#remarks_header[Remarks:]#

None

#remarks_header[Related:]#

ImageList

koda/en/documentation/control_toolbar.txt · Last modified: 2014/07/10 10:48 (external edit)