The most common use of title panes 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 overidden by passing
:visible-max-width nil
or
:visible-max-height nil
.
(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)