By: Yaron Goali (WISERBIT DOT COM) for Microncode.com
User Control: cToolbar
| Attribute | Value |
| Description | Gets/sets the number of pixels by which to pad out buttons with the CTBAutosize property set. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | lPadding | Long |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Attribute | Value |
| Description | Gets/sets the caption of a button. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant | |
| ByVal | sCaption | String |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Attribute | Value |
| Description | Gets/sets whether a button is checked or not (if the button has the checked or check group style) |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant | |
| ByVal | bState | Boolean |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Attribute | Value |
| Description | Returns the number of buttons in a toolbar. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Attribute | Value |
| Description | Gets/sets whether a button is enabled. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant | |
| ByVal | bState | Boolean |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant | |
| ByVal | bHot | Boolean |
| Attribute | Value |
| Description | Gets/sets whether a button in a flat toolbar appears in the hot state (i.e. looks like the mouse is over it) |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Attribute | Value |
| Description | Gets/sets the zero based index of a button's image. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant | |
| ByVal | iImage | Long |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Attribute | Value |
| Description | Returns the zero based index of a button given its key or position. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | iButton | Long |
| Attribute | Value |
| Description | Returns the key of a button given its position. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Attribute | Value |
| Description | Gets/sets whether a button is pressed. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant | |
| ByVal | bState | Boolean |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant | |
| ByVal | eStyle | ECTBToolButtonSyle |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Attribute | Value |
| Description | Gets/sets whether button text will be truncated if the button text is too long. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant | |
| ByVal | bState | Boolean |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Attribute | Value |
| Description | Gets/sets whether the caption for a button is visible or not. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant | |
| ByVal | bState | Boolean |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Attribute | Value |
| Description | Gets/sets whether button text will wrap onto a newline if it is too long. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant | |
| ByVal | bState | Boolean |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Attribute | Value |
| Description | Gets/sets the tool tip shown for a button. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant | |
| ByVal | sToolTip | String |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Attribute | Value |
| Description | Gets/sets whether a button is visible in the toolbar. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant | |
| ByVal | bState | Boolean |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant | |
| ByVal | lWidth | Variant |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | eButton | ECTBChevronAdditionalButtons |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | eButton | ECTBChevronAdditionalButtons | |
| ByVal | bState | Boolean |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | eButton | ECTBChevronAdditionalButtons |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | eButton | ECTBChevronAdditionalButtons | |
| ByVal | sCaption | String |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant | |
| ByVal | bState | Boolean |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | eStyle | ECTBToolbarDrawStyle |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | eAlign | ECTBDropDownAlign |
| Attribute | Value |
| Description | Returns the window handle of the control. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | sFile | String |
| Attribute | Value |
| Description | Sets a bitmap file to be used as the source of the buttons images. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | picThis | StdPicture |
| Attribute | Value |
| Description | Sets a picture object to be used as the source of the button's images. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | picThis | StdPicture |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | hInstance | Long |
| Attribute | Value |
| Description | Sets the hInstance of the binary containing the resource specified in ImageResourceID. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | lResourceId | Long |
| Attribute | Value |
| Description | Sets a resource id to be used as the source of the button's images. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | eType | ECTBImageSourceTypes |
| Attribute | Value |
| Description | Sets the type of image (file, picture, resource, image list or standard image list) to be used as the source of the button's images. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | eType | ECTBStandardImageSourceTypes |
| Attribute | Value |
| Description | Sets the standard image list bitmap to be used to generate the button images. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | bState | Boolean |
| Attribute | Value |
| Description | Gets/sets the maximum allowable button height. |
| Attribute | Value |
| Description | Gets/sets the maximum allowable button width. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | bState | Boolean |
| Attribute | Value |
| Description | Gets the height of the toolbar. |
| Attribute | Value |
| Description | Gets the width of the toolbar. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | bState | Boolean |
| Optional | ByVal/ByRef | Variable | Datatype |
| Optional | ByVal | sTip | String("") |
| Optional | ByVal | iImage | Integer(-1) |
| Optional | ByVal | vButtonBefore | Long(-1) |
| Optional | ByVal | xLarge | Integer(0) |
| Optional | ByVal | sButtonText | String |
| Optional | ByVal | eButtonStyle | ECTBToolButtonSyle |
| Optional | ByVal | sKey | String("") |
| Attribute | Value |
| Description | Adds a button to the toolbar, optionally setting the buttons text, tool tip, image and style at the same time. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | lhWnd | Long | |
| Optional | ByVal | vButtonBefore | Variant |
| Optional | ByVal | sKey | String("") |
| Attribute | Value |
| Description | Adds a control (such as a combo box) to the toolbar, optionally setting the control's key and which button it is added before. |
| Optional | ByVal/ByRef | Variable | Datatype |
| xWidth | Integer | ||
| xHeight | Integer |
| Attribute | Value |
| Description | Gets the rectangle of a button. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | x | Long | |
| ByVal | Y | Long |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByRef | cMenu | Object |
| Attribute | Value |
| Description | Sets up a toolbar based on a cPopupMenu object so the toolbar can act as the form's menu. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByRef | cMenu | Object | |
| Optional | ByVal | eStyle | ECTBToolbarFromMenuStyle |
| Optional | ByVal | sMenuParentKey | String |
| Optional | ByVal/ByRef | Variable | Datatype |
| Optional | ButtonSize | Integer(16) | |
| Optional | StyleList | Boolean | |
| Optional | WithText | Boolean | |
| Optional | Wrappable | Boolean | |
| Optional | PicSize | Integer |
| Attribute | Value |
| Description | Initialises a toolbar for use. |
| Attribute | Value |
| Description | Destroys the toolbar and all resources associated with it. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByRef | lMajor | Long | |
| ByRef | lMinor | Long | |
| Optional | ByRef | lBuild | Long |
| Attribute | Value |
| Description | Returns the system's COMCTL32.DLL version. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | ID | Integer | |
| ByRef | x | Long | |
| ByRef | Y | Long |
| Attribute | Value |
| Description | Returns the position to show a drop-down menu for a button in response to the DropDownPress event. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | hWndToolbar | Long | |
| ByVal | iButton | Long |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vButton | Variant |
| Attribute | Value |
| Description | Removes a button from the toolbar. |
| Attribute | Value |
| Description | Resizes the toolbar. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | lhWnd | Long | |
| ByVal | vButton | Variant |
| Attribute | Value |
| Description | Places a control over the specified button. Similar to AddControl, but modifies an existing button. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | iButton | Long | |
| ByVal | bState | Boolean |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | vThis | Variant | |
| Optional | ByVal | eType | ECTBImageListTypes(CTBImageListNormal) |
| Attribute | Value |
| Description | Sets the image list to be used for standard, hot or disabled button images. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | eKeyCode | KeyCodeConstants | |
| ByVal | bKeyUp | Boolean | |
| ByVal | bAlt | Boolean | |
| ByVal | bShift | Boolean |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | iIDButton | Long |
| Attribute | Value |
| Description | Causes a button click to occur. |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | lButton | Long |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | lButton | Long | |
| ByRef | bCanDelete | Boolean |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | lButton | Long | |
| ByRef | bCanInsert | Boolean |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | lButton | Long |
| Optional | ByVal/ByRef | Variable | Datatype |
| ByVal | iNew | Long | |
| ByVal | iOld | Long | |
| ByVal | eReason | ECTBHotItemChangeReasonConstants |