A toolbar assigned to a form.

Properties

The following tables list the properties, events and methods of the ToolBar class.

Property

Default

Description

baseClassName

TOOLBAR

Identifies the object as an instance of the ToolBar class.

className

(TOOLBAR)

Identifies the object as an instance of a custom class. When no custom class exists, defaults to baseClassName

flat

true

Logical value which toggles the appearance of buttons on the toolbar between always raised (false) to only raised when the pointer is over a button (true).

floating

false

Logical value that lets you specify your toolbar as docked (false) or floating (true).

form

null

Returns the object reference of the form to which the toolbar is attached.

hWnd

0

Returns the toolbar’s handle.

imageHeight

0

Adjusts the default height for all buttons on the toolbar. Since all buttons must have the same height, if ImageHeight is set to 0, all buttons will match the height of the tallest button. If ImageHeight is set to a non-zero positive number, images assigned to buttons are either padded (by adding to the button frame) or truncated (by removing pixels from the center of the image or by clipping the edge of the image).

imageWidth

0

Specifies the width, in pixels, for all buttons on the toolbar.

left

0

Specifies the distance from the left side of the screen to the edge of a floating toolbar.

text

 

String that appears in the title bar of a floating toolBar.

top

0

Specifies the distance from the top of the screen to the top of a floating toolbar.

visible

true

Logical property that lets you hide or reveal the toolbar.

Event

Parameters

Description

onUpdate

 

Fires repeatedly while application is idle to update the status of the toolbuttons

Method

Parameters

Description

attach( )

<form>

Establishes link between the toolbar and a form

detach( )

<form>

Breaks link between the toolbar and a form

Description

Use class ToolBar to add a toolbar to a form.