User Tools

Site Tools


koda:en:documentation:control_toolbar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

koda:en:documentation:control_toolbar [2014/07/10 10:48] (current)
Line 1: Line 1:
 +====== Toolbar ======
 +{{page>​commctrl}}
 +{{page>​commstyle}}
 +{|class="​cboxtable"​
 +|-
 +|class="​cboxcell1"​|{{ ​ control_toolbar.gif ​ |}}
 +|class="​cboxcell2"​|**TAToolbar**
 +|}
  
 +Creates an Toolbar control
 +
 +See the tutorial [[create_toolbar|]]
 +
 +#​remarks_header[Properties:​]#​
 +|**Images**|{{KODA>​VAR>​Images}} |
 +|**Name**|{{KODA>​VAR>​Name_Handle}} |
 +
 +#​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 <​key>​Tab</​key>​ and <​key>​S-Tab</​key>​ |
 +|WS_HSCROLL|{{KODA>​VAR>​WS_HSCROLL}} |
 +|WS_VSCROLL|{{KODA>​VAR>​WS_VSCROLL}} |
 +|WS_VISIBLE|{{KODA>​VAR>​WS_VISIBLE}} |
 +|WS_BORDER|{{KODA>​VAR>​WS_BORDER}} |
 +|WS_CLIPSIBLINGS|{{KODA>​VAR>​WS_CLIPSIBLINGS}} |
 +
 +#​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|{{KODA>​VAR>​WS_EX_CLIENTEDGE}}|
 +|WS_EX_STATICEDGE|{{KODA>​VAR>​WS_EX_STATICEDGE}} |
 +
 +#​remarks_header[Buttons:​]#​
 +
 +{{controls_toolbutton_add.png|}}
 +
 +Each button has its own properties:
 +
 +
 +|**Left**|Position of button relative to left side of toolbar.|
 +|**Name**|{{KODA>​VAR>​Name_Handle}} |
 +|**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:​]#​
 +
 +[[Control_imagelist]]
koda/en/documentation/control_toolbar.txt ยท Last modified: 2014/07/10 10:48 (external edit)