The main layout description.
Specifies the tabs of the tab layout.
The type of data passed to the callback function in callback mode.
A plist of keywords and image-list objects, on Microsoft Windows.
tab-layout is a subclass of choice. Most importantly it inherits choice's selection and
behavior, and its
(which is used to determine the string that appear in each tab), and its
behavior (which in turn derives from collection).
In switchable mode, selecting on a tab causes a call to the function visible-child-function (after doing the selection-callback ) with the selected item as a single argument. visible-child-function must return a pane, which is then displayed. The pane that is returned by visible-child-function must not be displayed elsewhere, but can be any pane. Repeated calls with the same item should return the same pane, otherwise it will create a new pane each time the tab is selected.
In callback mode there is only one pane, which you must specify by the initarg
:description (which is inherited from layout). In this case the
must perform any changes that are needed.
In either mode
influences the initial size of the layout. When
nil the constraints of the tab layout depend only on its currently visible tab. Switching to a different tab might cause the layout to resize. When
is non-nil, the constraints depend on all of the tabs, including those that are not visible. This might increase the time taken to create the tab layout initially, but can prevent unexpected resizing later. The default value of
is specified, it should be a plist containing the keyword
:normal as a key. The corresponding value should be an image-list object. No other keys are supported at the present time. The image-list associated with the
:normal key is used with the
to specify an image to display in each tab.
This specifies the filename of a file suitable for loading with load-image. Currently this must be a bitmap file.
The symbol must have been previously registered by means of a call to register-image-translation.
An image object, as returned by load-image.
This allowing a single bitmap to be created which contains several button images side by side. See make-image-locator for more information. On Microsoft Windows, it also allows access to bitmaps stored as resources in a DLL.
(non-switchable-tab-layout '(1 2 4 5 6))
CAPI User Guide and Reference Manual (Macintosh version) - 25 Feb 2015