ToolBarImageButtonEx |
www.progui.co.uk Top Previous Next |
ToolBarImageButtonEx() Syntax Success = ToolBarImageButtonEx(ButtonID.l, Text$, *NormalImageID, *HotImageID, *DisabledImageID, Style.l) Description Adds an image button to the current 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. If *DisabledImageID is null then the disabled state image will be rendered automatically based on *NormalImageID and the current theme/style. Style.l specifies the optional Windows flags for the button and can include any of the following:
#BTNS_BUTTON #BTNS_SEP #BTNS_CHECK #BTNS_GROUP #BTNS_CHECKGROUP #BTNS_DROPDOWN #BTNS_AUTOSIZE #BTNS_NOPREFIX #BTNS_SHOWTEXT #BTNS_WHOLEDROPDOWN See Microsoft MSDN for details. Returns zero for failure or the Button ID for success.
|