Please enable JavaScript to view this site.

ESL Documentation

Define an action bar template.

action bar AB_NAME is

[PULLDOWN_DEF_OR_REF] ...

[BUTTON_DEF_OR_REF]...

end action bar

 

AB_NAME

The identifier for an action bar template.

 

PULLDOWN_DEF_OR_REF

The definition for, or reference to, a pulldown.

 

BUTTON_DEF_OR_REF

The definition for, or reference to, a button.

Description

The action bar template defines the structure and visual attributes of an action bar and its pulldowns. The template definition itself is not an on-screen object; the action bar only appears when it is specified as the action bar of a region.

The action bars in different regions can be created from the same template.

Use the item statement to reference pulldowns and buttons previously defined outside of an action bar template.

In ESL for Windows, buttons may be interspersed with pulldowns and therefore will appear in the action bar in the order in which they are defined. Conventionally, buttons should appear after pulldowns in the action bar.

Example

action bar Part_Window_AB is

pulldown View_Choices text "~View"

choice View_Part text "~Part \t F4"

accelerator is KEY_F4

choice View_Description text "~Description"

choice View_Inventory text "~Inventory \t Alt+F5"

accelerator is alt KEY_F5

end pulldown

end action bar

 

color 26 graphical region Part_Window_GR

size 263 160

at position 60 80

in desktop

color 27 foreground

size border

title bar "Part"

system menu

horizontal scroll bar scroll by 6

vertical scroll bar scroll by 16

no scale

action bar Part_Window_AB

See Also

button Definition

item Reference

pulldown Definition