You can specify a title directly to all CAPI panes, using the
keyword. This is much easier than using title-panes, since it does not necessitate using a layout to group two elements together.
Any class that is a subclass of
keyword. All of the standard CAPI panes inherit from this class. You can find out all the subclasses of
by graphing them using the class browser.
The position of any title can be specified by using the
keyword. Most panes default the title-position to
, although some use
You may specify the font used in the title via the keyword
The title of a
, and its font, may be changed interactively with the use of
, if you wish.
(setq button (make-instance 'push-button
:title "Press: "
button #'(setf titled-object-title) "Press here: " button)
As soon as the form is evaluated, the title of the pane you just created changes.
button #'(setf titled-object-title-font)
(gp:make-font-description :size 42)
(titled-object-title-font button))) button)
Notice how the window automatically resizes in steps 2 and 3, to make allowance for the new size of the title.