Index

# XToolBar

XFrameControl &rarrXToolBar

public
- DoCommand
- DoSize
- Draw
- RemoveWindow
- adding/removin windows
- AddWindow
- constructors/destructors
- XToolBar
- ~XToolBar
- display
- GetBackgroundColor
- Hide
- Show
- sizing
- SetBorderSize
- SetHight

#### Derrived

: public XFrameControl

## public

###

DoCommand

#### Definition

`

void DoCommand ( LONG com )

void DoCommand ( LONG )

`

#### Returns

void

###

DoSize

#### Definition

`

void DoSize ( void )

`

#### Returns

void

###

Draw

#### Definition

`

void Draw ( void )

`

#### Returns

void

###

RemoveWindow

Removes a window attached to the toolbar

#### Definition

`

BOOL RemoveWindow ( XWindow* w, BOOL redraw )

BOOL RemoveWindow ( XWindow* , BOOL redraw = FALSE )

`

#### Parameters

: XWindow * theWindow window to remove BOOL redraw recalculate the position of other attached windows

#### Returns

BOOL

BOOL success

## adding/removin windows

###

AddWindow

Attach a window to the toolbar

#### Definition

`

void AddWindow ( XWindow* w, BOOL newGroup, BOOL adjustSize, XWindow* insertBehind, LONG x, LONG y )

void AddWindow ( XWindow* clientWindow, BOOL newGroup = FALSE, BOOL adjustSize = FALSE, XWindow* insertBehind = NULL, LONG x_offset = 0, LONG y_Offset = 0 )

`

#### Parameters

: 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 yx-offset of the window (usefull on Combos)

#### Returns

void

BOOL success

## constructors/destructors

###

XToolBar

creates a toolbar

#### Definition

`

XToolBar ( XFrameWindow* fr, ULONG sty, USHORT ySize, USHORT groupSpace )

XToolBar ( XFrameWindow* , ULONG style = TB_TOP, USHORT ySize = 20, USHORT groupSpacing = 15 )

`

#### Parameters

: XFrameWindow * parent framewindow wich gets the toolbar ULONG style the style of the toolbar, possible values are: TB_TOP toolbar is on the top of framwindow TB_BOTTOM toolbar is on the bottom of framwindow default is TB_TOP USHORT ySize hight of the toolbar in pixels, default is 20 USHORT groupSpace size between window-groups in pixels, default is 15

#### Returns

-

-

###

~XToolBar

Destructor, evere attached window is destroyed and the destructors of the windows are called.

#### Definition

`

~XToolBar ( )

virtual ~XToolBar ( )

`

#### Parameters

: -

#### Returns

-

-

## display

###

GetBackgroundColor

returns the background color

#### Definition

`

void GetBackgroundColor ( XColor* col )

void GetBackgroundColor ( XColor* rgb )

`

#### Parameters

: XColor * colorBuffer buffer which will get the color

#### Returns

void

-

###

Hide

Hides the toolbar

#### Definition

`

void Hide ( void )

`

#### Parameters

: -

#### Returns

void

-

###

Show

Shows the toolbar

#### Definition

`

void Show ( void )

`

#### Parameters

: -

#### Returns

void

-

## sizing

###

SetBorderSize

set the size between the border of the toolbar and the attached windows

#### Definition

`

void SetBorderSize ( USHORT border )

void SetBorderSize ( USHORT siz )

`

#### Parameters

: USHORT borderSize size of border in pixels

#### Returns

void

-

###

SetHight

Set the hight of the toolbar

#### Definition

`

BOOL SetHight ( USHORT y )

BOOL SetHight ( USHORT cy )

`

#### Parameters

: USHORT ySize the new hight in pixels

#### Returns

BOOL

-

Created by AutoDoc, (C) 1996 by Jens von Pilgrim