- Foreword
- Basics
- Interface
- Menu
- File
- Import
- Edit
- View
- Options
- Options
- Tools
- Help
- Windows & Dialogs
- Controls
- Standard
- Additional
- Win32
-
- Property Editors
- Appendices
{|class=“cboxtable”
class=“cboxcell1” |
class=“cboxcell2” |
Creates an Toolbar control
See the tutorial Creating a Toolbar
#remarks_header[Properties:]#
Images | An attached html_wikilink('control_ImageList','') control |
Name | Name 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_WRAPABLE | Toolbar can have multiple rows of buttons |
TBSTYLE_FLAT | Buttons are two-dimensional |
TBSTYLE_TRANSPARENT | Toolbar is transparent, but the buttons are not. Button text appears under images |
WS_TABSTOP | Control can be selected with Tab and Shift+Tab |
WS_HSCROLL | Control has horizontal scroll bar |
WS_VSCROLL | Control has vertical scroll bar |
WS_VISIBLE | Control is visible |
WS_BORDER | Control has a thin-line border |
WS_CLIPSIBLINGS | If this control overlaps with another, this control shows partially |
#remarks_header[Extra Styles:]#
TBSTYLE_EX_DRAWDDARROWS | Allows 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_DOUBLEBUFFER | Double buffering detects when a toolbar has changed |
WS_EX_CLIENTEDGE | Control has border with sunken edge |
WS_EX_STATICEDGE | Control has a three-dimensional border |
#remarks_header[Buttons:]#
Each button has its own properties:
Left | Position of button relative to left side of toolbar. |
Name | Name of control and of the variable that is assigned its handle in generated code. If not specified, no variable is generated . |
Style | Style 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_AUTOSIZE | Button'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_WHOLEDROPDOWN | Button will have a drop down arrow, but not as a separate section. TBSTYLE_EX_DRAWDDARROWS is irrelevant |
#remarks_header[Remarks:]#
None
#remarks_header[Related:]#