All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

title-pane Class

Summary

This class provides a pane that displays a single line of text.

Package

capi

Superclasses

titled-object
simple-pane

Subclasses

message-pane

Initargs
:text
The text to appear in the title pane.
Accessors

title-pane-text

Description

The class title-pane provides a pane that displays a single line of text.

The most common use of title-pane is as a title decoration for a pane, and so the class titled-object is provided as a class that supports placing title panes around itself.

A title-pane with text "Title" is created automatically when a titled-object is created with title "Title".

By default, a title-pane is constrained so that it cannot resize (that is, the values of visible-max-width and visible-max-height are t). This can be overridden by passing :visible-max-width nil or :visible-max-height nil.

Notes

title-pane does not support the :pane-menu initarg on Microsoft Windows. If you need interaction, use display-pane or text-input-pane with :pane-menu and :enabled :read-only.

Examples
(setq title-pane (capi:contain
                  (make-instance 
                   'capi:title-pane
                   :text "This is a title pane")))
 
(capi:apply-in-pane-process
 title-pane #'(setf capi:title-pane-text) 
 "New title" title-pane)
See also

display-pane
text-input-pane
editor-pane
3 General Properties of CAPI Panes


CAPI User Guide and Reference Manual (Macintosh version) - 01 Dec 2021 19:31:27