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. 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. 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 when the user continues to drag an object over the pane. It should behave as for
and should call
if it wants to allow the object to be dropped. 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
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.
In order to display a simple pane, it needs to be contained within an interface. The two convenience functions make-container and contain are provided to create an interface with enough support for that pane. The function make-container just returns a container for an element, and the function contain displays an interface created for the pane using make-container.