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

make-container Function

Summary

Creates a container for a specified element.

Package

capi

Signature

make-container element &rest interface-args

Arguments
element
A Lisp object.
interface-args
Initialization arguments of interface.
Description

The function make-container creates a container for element such that calling display on it will produce a window containing element on the screen. It will produce a container for any of the following classes of object:

In the case of a list, the CAPI tries to see what sort of objects they are and makes an appropriate container. For instance, if they were all simple panes it would put them into a column layout.

The arguments interface-args will be passed through to the make-instance of the top-level interface, assuming that pane is not a top-level interface itself.

The complementary function contain uses make-container to create a container for an element which it then displays.

Examples
(capi:display (capi:make-container
                (make-instance
                 'capi:text-input-pane)))
See also

contain
display
interface
element
10.5 Creating your own dialogs


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:27