Re: CAPI display text with alignment
"MK (as mkuuskan at yahoo dot com)" <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <[email protected]> |
If it's supposed to be just one line you can also use layouts: (capi:contain (make-instance 'capi:column-layout :adjust :center :visible-max-width () :description (list (make-instance 'capi:title-pane :text "CENTERED TEXT")))) want to make use of the title of the pane, do it like so: (capi:contain (make-instance 'capi:title-pane :title "test" :visible-max-width () :title-font (gp:make-font-description :size 24) :title-position :top :title-adjust :center)) there are other ways depending on your use case. mika > On 16. Jan 2025, at 22.45, John DeSoi (as john at desoi dot dev) <[email protected]> wrote: > > I want to display static text on an interface with center or right text alignment. It seems like capi:display-pane is the right class, but there is no alignment option. titled-object is a superclass of title-pane, but that does not work. I assume because it is intended to be the title of some other element. > > (capi:contain (make-instance 'capi:title-pane :text "test" :visible-min-width 400 :title-adjust :center)) > > > John DeSoi, Ph.D. > > > _______________________________________________ > Lisp Hug - the mailing list for LispWorks users > [email protected] > http://www.lispworks.com/support/lisp-hug.html _______________________________________________ Lisp Hug - the mailing list for LispWorks users [email protected] http://www.lispworks.com/support/lisp-hug.html