ToolBarExGadget  Top  Previous  Next



Success = ToolBarExGadget(ButtonID.l, GadgetID.i, LeftPadding.l, TopPadding.l, RightPadding.l, BottomPadding.l, ApplyUIStyle.b)


Adds a gadget/control 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. GadgetID.i is the Windows handle (HWND) of the control and can be obtained using the PureBasic command GadgetID(). LeftPadding.l, TopPadding.l, RightPadding.l and BottomPadding.l adds padding around the gadget/control at the desired sides (if any). ApplyUIStyle.b if set to True will render the control in the ToolBarEx's UIStyle if supported. Currently none-image ComboBoxes are supported.

Returns zero for failure or the Button ID for success.


ToolBarEx Index