InsertToolBarImageButtonEx |
www.progui.co.uk Top Previous Next |
InsertToolBarImageButtonEx() Syntax Success = InsertToolBarImageButtonEx(Toolbar.i, Position.l, ButtonID.l, Text$, *NormalImageID, *HotImageID, *DisabledImageID, style.l) Description Inserts an image button into a ToolBarEx. Toolbar.i specifies the handle/ID of the ToolBarEx you want to insert the button into. Position.l is the zero-based index of where the button will be inserted and can be -1 in order to append the button to the end of the ToolBarEx. ButtonID specifies the internal ID to be used and if #ProGUI_Any is used then the returned value will be the new Button ID. Text$ is displayed as the button's label and can contain escape-code effects (see MenuItemEx for details). *NormalImageID, *HotImageID and *DisabledImageID are pointers to image data that are used to display the button in the various states. Style.l specifies the optional Windows flags for the button, please see ToolBarImageButtonEx for details.
Returns zero for failure or the Button ID for success.
|