CreateToolBarEx

www.progui.co.uk  Top  Previous  Next

CreateToolBarEx()

Syntax

WindowsID = CreateToolBarEx(ID.l, WindowID.i, IconWidth.l, IconHeight.l, Style.l)

Description

Creates an empty extended toolbar in the window specified by WindowID. ID is the internal ID to be used and if #ProGUI_Any is used then the returned value will be the new ToolBarEx ID. IconWidth and IconHeight are the dimensions of the image buttons you would like (if any).

 

Style is optional and can contain the following flags:

#TBSTYLE_HIDECLIPPEDBUTTONS

Hides the toolbar buttons when the containing window's edge obscures them.

#UISTYLE_OFFICE2003

Creates a Toolstrip Office 2003 style toolbar when contained within a rebar with the same style applied.

#UISTYLE_OFFICE2007

Creates a Toolstrip Office 2007 style toolbar when contained within a rebar with the same style applied.

#UISTYLE_IMAGE

Removes all padding around the toolbar buttons and removes the button border.

Please also see SetUIColour for changing the colours used in the various styles to your own custom colours.

Style can also contain other flags, see Microsoft MSDN for details.

 

Returns the Windows ID of the toolbar ( or if #ProGUI_Any is used the ToolBarEx ID ) or zero for failure.

 

See ToolBarImageButtonEx, ToolBarButtonEx, ToolBarDropdownImageButtonEx.

 

ToolBarEx Index