has two distinct modes. Switchable mode lays a number of panes in a switchable layout. Each pane has an associated tab which, when clicked on, pulls the pane to the front. In callback mode the tabs are linked to a
as for button-panel.
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.
In switchable mode, the tab layout consists of a number of panes, each with its own tab. Clicking on a tab pulls the corresponding pane to the front. In this mode the tab layout is like a switchable-layout with the switching performed by the user selecting a tab. In this mode the visible-child-function is used to specify which child to make visible for a given tab selection.
In callback mode the tab layout does not work as a switchable layout, and the result of any selection is specified using a callback specified by selection-callback , in a similar way to a button-panel callback. In this mode the description slot is used to describe the main layout of the tab pane.
In either mode
influences the initial size of the layout. When
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
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
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
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 Reference Manual - 15 Dec 2011