All Manuals > CAPI User Guide and Reference Manual > 9 Adding Toolbars

NextPrevUpTopContentsIndex

9.9 Non-standard toolbars

You can create toolbars using the toolbar class explicitly, and arrange them like other elements, using layouts. This approach differs from interface toolbars as described in the preceding sections of this chapter. Note that, while it allows you some flexibility this approach can produce non-standard appearance, does not support user-customization, and does not support folding on Cocoa. Other than this, non-standard toolbars support all the features described in the preceding sections of this chapter, and additionally:

There is an example here:

(example-edit-file "capi/elements/toolbar")

9.9.1 Changing a non-standard toolbar dynamically

The best way to change a non-standard toolbar is to use a switchable-layout. Include a toolbar instance in each of two or more child layouts, of which only one is visible at a time.

There is an example here:

(example-edit-file "capi/layouts/switchable")

CAPI User Guide and Reference Manual (Unix version) - 3 Aug 2017

NextPrevUpTopContentsIndex