The background color of the pane.
The foreground color of the pane.
The default font for the pane.
are colors specified using the Graphics Ports color system. Additionally on Cocoa, the special value
is supported, which makes the pane's background match that of its parent.
Has no border.
Has a border.
Use the default for the window type.
Add an outline border.
There are various platform/pane class combinations which do not respond to all values of
. For instance, on Windows XP with the default theme,
always have a visible border regardless of the value of
, while other classes including
have three distinct border styles, with
meaning the same as
Any simple pane can be made scrollable by specifying
. By default these values are
, but some subclasses of
default them to
where appropriate (for instance
s always default to having a vertical scroll-bar).
The height and width of a scrollable simple pane can be specified by the initargs
, which have the same meaning as
. See the
LispWorks CAPI User Guide
for more information about height and width initargs.
specifies a cursor for the pane.
means use the default cursor, and this is the default value.
can also be a cursor object as returned by load-cursor. The other allowed values are keywords naming built-in cursors which are supported on each platform as shown in the table below.
can be used to specify or create a menu to be displayed when the
gesture is received by the pane. It has the default value
which means that make-pane-popup-menu is called to create the menu. For a full description of
, see the section "Popup menus for panes" in the
LispWorks CAPI User Guide
can be specified for a pane that is an instance of output-pane, interface or a subclass of one of these. On Cocoa, list-panel and tree-view also support
. When the user drags an object over a window, the CAPI first tries to call the
of any output-pane under the mouse and otherwise calls the
of the top-level interface. The default value of
, which means that there is no support for dropping into the pane.
, which provides support for dropping a string into the pane and inserting the string into the pane's editor buffer.
The function drop-callback is called by the CAPI at various times such as when the pane is displayed and when the user attempts to drop data into the pane. pane is the pane itself, drop-object is an object used to communicate information about the current dropping operation (see below) and stage is a keyword. drop-callback should handle these values of stage :
This might occur when the pane is being displayed or might occur each time the user drags or drops an object over the pane. It should call set-drop-object-supported-formats with the drop-object and a list of formats that the pane wants to receive. Each format is a keyword. The list of the formats must be the same each time it is called.
This occurs when the user drags an object over the pane which is an output-pane or interface (not tree-view or list-panel). It can query the
using drop-object-provides-format and drop-object-allows-drop-effect-p to discover what the user is dragging. It can also use drop-object-pane-x and drop-object-pane-y to query the mouse position relative to the pane. It should call
with an effect if it wants to allow the object to be dropped. If this is not called, then the object cannot be dropped into the pane.
This occurs while the user is dragging an object over the pane. It can query the
using drop-object-provides-format and drop-object-allows-drop-effect-p to discover what the user is dragging. For output-pane, it can use drop-object-pane-x and drop-object-pane-y to query the mouse position relative to the pane. For list-panel and tree-view, it can use drop-object-collection-index or drop-object-collection-item to query where the user is attempting to drop the object and can call their setf functions to adjust this position. It should call
with an effect if it wants to allow the object to be dropped. If this is not called, then the object cannot be dropped into the pane. For output-pane and interface, it might also want to update the pane to indicate where the object will be dropped.
This occurs when the user drops an object over the pane. It can query the
as for the
stage, but can also obtain the object itself using drop-object-get-object for one of the formats in the list returned by drop-object-provides-format. Once the object is received, it should call
with the effect that has been used by the callback. It should also update the pane to incorporate the object in whatever way the application requires.
can be specified for a pane that is an instance of list-panel or tree-view. The default value of
, which means that there is no support for dragging from the pane. Otherwise, it should be a function designator with this signature:
drag-callback pane info => plist
When the user drags items in the pane, the CAPI calls the
is the pane itself and
is a list of item indices that are being dragged (compare with choice-selection). The
should return the plist
whose keys are the data formats to be dragged, with a value associated with each format. Formats are arbitrary keywords that must be interpreted by the pane where you intend to drop the values (see the
format is understood by some other panes that expect text.
controls scrolling behavior of the parent when the pane is given the input focus.
. See scroll-if-not-visible-p for details. When this initarg is supplied, the generic function
is called with it.
If the pane is used in the toolbar-items list of an interface, then toolbar-title should be a short string that will be shown near to the pane if required for the toolbar.