Description |
Parent class: XWindow
XToolBar represents a toolbar for framewindows. You can attach every type of control to it.
AddWindow |
XWindow * theWindow | window to add |
BOOL newGroup | with this window a new group starts |
BOOL adjustSize | recalculate the hight of the toolbar depending on the dimensions of theWindow |
XWindow * insertBehind | insert theWindow behind this window |
LONG xOffset | x-offset of the window |
LONG yOffset | y-offset of the window (usefull for XComboBox) |
BOOL success
Attach a window to the toolbar.
RemoveWindow |
XWindow * theWindow window to remove
BOOL redraw recalculate the position of other attached windows
BOOL success
Removes a window attached to the toolbar
XToolBar |
XFrameWindow * parent | framewindow wich gets the toolbar | ||||||||||
ULONG style | the style of the toolbar, possible values are:
default is TB_TOP | ||||||||||
ULONG id | window-ID, default is 0 | ||||||||||
USHORT ySize | hight of the toolbar in pixels, default is 20 | ||||||||||
USHORT groupSpace | size between window-groups in pixels, default is 15 |
Creates a toolbar
~XToolBar |
Destructor, every attached window is destroyed and the destructors of the windows are called.
Draw |
Redraw the toolbar.
GetBackgroundColor |
XColor * colorBuffer buffer which will get the color
Returns the background color
SetBackgroundColor |
XColor * colorBuffer the new color
Set the background color
Show |
BOOL show TRUE=show, FALSE=hide
Show/hide the toolbar
ReSize |
The positions of the attached windows are recalculated.
SetBorderSize |
USHORT borderSize size of border in pixels
Set the size between the border of the toolbar and the attached windows
SetHeight |
USHORT ySize the new hight in pixels
Set the hight of the toolbar