Class
titled-pane provides support for decorating a pane with a title (a piece of text positioned next to the pane) and with a message (a piece of text below the pane). interfacelayouttitle-panedisplay-panetext-input-panebuttonlist-panelbutton-paneloption-panecontact-pane
title A title string for the current pane (ornil).
title-argsKeyword arguments to the title make-instance.
title-positionThe position of the title.
title-adjustHow to adjust the title relative to the pane.
message A message string for the current pane (ornil).
message-args Keyword arguments to the messagemake-instance.
titled-pane-title
titled-pane-message
title-args andmessage-args. :leftPlace the title to the left of the pane.
:rightPlace the title to the right of the pane.
:topPlace the title above the pane.
:bottomPlace the title below the pane.
title-adjust slot is used to adjust the title so that it is left justified, right justified or centered. The value oftitle-adjust can be any of the values accepted by the functionpane-adjusted-offset, which are:left,:right,:top,:bottom,:center and:centre. text-input-pane is a subclass oftitled-pane, and that it has a defaulttitle-position of:left.
(capi:contain (make-instance 'capi:text-input-pane))
(capi:contain (make-instance 'capi:text-input-pane
:title "Enter some text:"))
(capi:contain (make-instance
'capi:text-input-pane
:title "Enter some text:"
:title-position :top))
(capi:contain (make-instance 'capi:text-input-pane
:title "Enter some text:"
:title-position :top
:title-adjust :center))
(capi:contain (make-instance 'capi:text-input-pane
:title "Enter some text:"
:title-position :top
:title-adjust :right))
(capi:contain (make-instance 'capi:text-input-pane
:message "A message"))
(capi:contain (make-instance 'capi:text-input-pane
:message "A message"
:title "Enter some text:"))
(capi:contain (make-instance 'capi:text-input-pane
:title "Enter some text:"
:title-args
'(:foreground :red)))
title-pane