1 CAPI Reference Entries

simple-pane

Class

Summary

The classsimple-pane is the superclass for any elements that actually appear as a native window, and is itself an empty window.

Superclasses

element

Subclasses

titled-pane

Slots

background
The background color of the pane.

foreground
The foreground color of the pane.

font
The default font for the pane.

horizontal-scroll

Non-nil if the pane can scroll horizontally.

vertical-scroll

Non-nil if the pane can scroll vertically.

visible-border

Controls whether the pane has a border.

Accessors

simple-pane-background
simple-pane-foreground
simple-pane-font

Readers

simple-pane-horizontal-scroll
simple-pane-vertical-scroll
simple-pane-visible-border

Description

The background and foreground colors are colors specified using the graphics ports color system, and the font must be a generic font. The value forvisible-border can be any of the following:

nil
Has no border.

t
Has a border.

:default
Use the default for the window type.

Any simple pane can be made to scroll by specifyingt to:horizontal-scroll or:vertical-scroll. By default these values arenil, but some subclasses ofsimple-pane default tot where appropriate (for instance editors always default to having a vertical scroll-bar).

In order to display a simple pane, it needs to be contained within an interface. The two convenience functionsmake-container andcontain are provided to create an interface with enough support for that pane. The functionmake-container just returns a container for an element, and the functioncontain displays an interface created for the pane usingmake-container.

Examples

(capi:contain (make-instance 'capi:simple-pane))
(capi:contain (make-instance 'capi:simple-pane
                             :background :red))

(capi:contain (make-instance 'capi:simple-pane :background :red :horizontal-scroll t))

(capi:contain (make-instance 'capi:simple-pane :visible-border t))

See Also

contain


CAPI Reference Manual, Liquid Common Lisp Version 5.0 - 3 OCT 1997

Generated with Harlequin WebMaker