All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

toolbar-object Class

Summary

This is a common superclass of all toolbar objects.

Package

capi

Superclasses

standard-object

Subclasses

toolbar
toolbar-button
toolbar-component

Initargs
:enabled
If t, the toolbar object is enabled.
:enabled-function
A function determining the enabled state.
Accessors

simple-pane-enabled
toolbar-object-enabled-function

Description

The class toolbar-object is a common superclass of all toolbar objects.

Any toolbar object may be disabled, by setting its enabled slot to nil. Disabling a toolbar or toolbar component prevents the user from interacting with any buttons contained in it.

All toolbar objects may also have an enabled-function specified. This is called whenever update-toolbar is called. If it returns t, the toolbar object will be enabled; if it returns nil, the object will be disabled.

Notes

The function enabled-function should not display a dialog or do anything that may cause the system to hang. In general this means interacting with anything outside the Lisp image, including files, databases and so on.

See also

toolbar
toolbar-button
toolbar-component
update-toolbar
9 Adding Toolbars


CAPI User Guide and Reference Manual (Unix version) - 01 Dec 2021 19:32:42