Next: , Previous: , Up: Toolbar   [Contents][Index]


29.3 Toolbar Descriptor Format

The contents of a toolbar are specified using a toolbar descriptor. The format of a toolbar descriptor is a list of toolbar button descriptors. Each toolbar button descriptor is a vector in one of the following formats:

Optionally, one of the toolbar button descriptors may be nil instead of a vector; this signifies the division between the toolbar buttons that are to be displayed flush-left, and the buttons to be displayed flush-right.

The first vector format above specifies a normal toolbar button; the others specify blank areas in the toolbar.

For the first vector format:

For the other vector formats (specifying blank areas of the toolbar):

Function: toolbar-make-button-list up &optional down disabled cap-up cap-down cap-disabled

This function calls make-glyph on each arg and returns a list of the results. This is useful for setting the first argument of a toolbar button descriptor (typically, the result of this function is assigned to a symbol, which is specified as the first argument of the toolbar button descriptor).

Function: check-toolbar-button-syntax button &optional noerror

Verify the syntax of entry button in a toolbar description list. If you want to verify the syntax of a toolbar description list as a whole, use check-valid-instantiator with a specifier type of toolbar.


Next: , Previous: , Up: Toolbar   [Contents][Index]