Creating a toolbar

The toolbar is also referred to as a speed bar and is placed above the session screen. HostAccess has a standard toolbar that will be replaced with the newly specified toolbar.

To create a toolbar containing associated commands, call the following subroutine from your application:

CALL PIX.GUI.LOAD.TOOLBAR (GUI.APP.NAME, CONTROL.DETAILS, STRING)

Where

CONTROL.DETAILS

Control ID, TOOLBAR, ADD,COMMAND1,...COMMANDn

Where:

Control ID

Is the Unique name for the Control.

TOOLBAR

Is the text literal TOOLBAR.

ADD

Is the literal  'ADD'; to append commands to the current toolbar. By default, a new toolbar is created (the current toolbar is over-written).

COMMAND1... COMMANDn

This is a list of command Control IDs that will be used in the toolbar. Each Command control ID will be separated by commas or Value marks. The icons /bitmaps will be loaded from left to right in order specified. If a new line is required to give multiple toolbars then the text literal “NEWLINE” as a Command Control Id will be needed.

Alternatively, you can use the PIX.GUI.CONTROL.LOAD subroutine, see Loading all types of controls for details.

Toolbars Program Example

042 CALL PIX.GUI.LOAD.TOOLBAR("","BAR1,TOOLBAR,ADD,
COMM7,COMM8,COMM9,COMM10","")