Element: window.button_labels[16]

Type

string

Description

The label text associated with the 16 user buttons for window. This is the visible text in the menu bar.

These elements are shorthand references to string elements of panels in the window menubar (window.menubar), where:

window.button_labels[n] is shorthand for

window.menubar.panels[n].label.

They have the capability of being defined before a window has been allocated, i.e. before the existence of the menu bar.

Each menu bar button may have an associated mnemonic character which enables the button to be activated from the keyboard as an alternative to a mouse button press. The mnemonic may be indicated by preceding the relevant character in the label by a &. The button is then activated by pressing the ALT key and the mnemonic character together when the window which owns the menu bar has the keyboard focus.

For all window menu bars, button 1, when visible, is placed at the right of the menu bar. The left most button is therefore button 2, or the first visible button thereafter.

The default button labels for new windows are as follows:

The action associated with a menubar button is defined by one of the window.buttons callback procedures.