RE: Changing the background of a title
Hi Marco,
use :mnemonic-text or :mnemonic-title
examples:
(capi:contain (make-instance 'capi:text-input-pane :mnemonic-title "This is
a test"))
(capi:contain (make-instance 'capi:text-input-pane :mnemonic-title "&This is
a test"))
(capi:contain (make-instance 'capi:push-button :mnemonic-text "&Test"))
(capi:contain (make-instance 'capi:push-button :mnemonic-text "Test"))
This is also very useful when you want to force specifics keys to be
shortcuts for the same actions across your application (ex: OK & Cancel
buttons).
Cheers,
Sebastien.
> -----Message d'origine-----
> De : Marco Antoniotti [mailto:marcoxa@cs.nyu.edu]
> Envoye : lundi 20 decembre 2004 20:37
> A : Sebastien Saint-Sevin
> Cc : ML Xanalys LispWorks
> Objet : Re: Changing the background of a title
>
>
> One more question:
>
> Each title is printed with one character underlined (I suppose to get
> navigations effects)
>
> How do you turn off this feature?
>
> Thanks
>
> marco
>
>
> On Dec 20, 2004, at 12:54 PM, Sebastien Saint-Sevin wrote:
>
> > Not sure of what your construction is.
> > However, here is another example:
> >
> > (capi:define-interface test ()
> > ()
> > (:panes
> > (title1 capi:title-pane :text "short" :background :red
> > :visible-max-width nil)
> > (title2 capi:title-pane :text "this is a longer title"
> > :background
> > :red)
> > (pane1 capi:text-input-pane)
> > (pane2 capi:text-input-pane)
> > )
> > (:layouts
> > (main capi:grid-layout
> > '(title1 pane1 title2 pane2)
> > :columns 2
> > )))
> >
> > (capi:contain (make-instance 'test))
> >
> >
> > So :visible-max-width nil is your friend here.
> > Cheers,
> > Sebastien.
> >
> >> -----Message d'origine-----
> >> De : owner-lisp-hug@xanalys.com [mailto:owner-lisp-hug@xanalys.com]De
> >> la
> >> part de Marco Antoniotti
> >> Envoye : lundi 20 decembre 2004 18:35
> >> A : ML Xanalys LispWorks
> >> Objet : Re: Changing the background of a title
> >>
> >>
> >> Thank you.
> >>
> >> Almost there. Unfortunately it looks like the title "pane" does not
> >> stretch for the whole width of the actual pane. So the title
> >> background covers only the actual background of the title text.
> >>
> >> Cheers
> >>
> >> marco
> >>
> >>
> >>
> >> On Dec 20, 2004, at 12:27 PM, Sebastien Saint-Sevin wrote:
> >>
> >>> Try this:
> >>>
> >>> (capi:contain
> >>> (make-instance 'capi:text-input-pane
> >>> :title "test"
> >>> :title-args '(:background :red)))
> >>>
> >>> Sebastien.
> >>>
> >>>> -----Message d'origine-----
> >>>> De : owner-lisp-hug@xanalys.com
> >>>> [mailto:owner-lisp-hug@xanalys.com]De
> >>>> la
> >>>> part de Marco Antoniotti
> >>>> Envoye : lundi 20 decembre 2004 18:04
> >>>> A : Lisp Hug Xanalys
> >>>> Objet : Changing the background of a title
> >>>>
> >>>>
> >>>> Hi
> >>>>
> >>>> a lot of panes in CAPI inherit from the TITLE-OBJECT mixin. This
> >>>> makes
> >>>> it easy to change the font of the title.
> >>>>
> >>>> I use the :title slot of a pane quite a lot, however, I'd also like
> >>>> to
> >>>> change the background of the title as well instead of the regular
> >>>> grey
> >>>> or whitish.
> >>>>
> >>>> It there a simple way to do so?
> >>>>
> >>>> Thanks
> >>>>
> >>>>
> >>>> --
> >>>> Marco Antoniotti
> >>>> http://bioinformatics.nyu.edu
> >>>> NYU Courant Bioinformatics Group tel. +1 - 212 - 998 3488
> >>>> 715 Broadway 10th FL fax. +1 -
> >> 212 - 998 3484
> >>>> New York, NY, 10003, U.S.A.
> >>>>
> >>>>
> >>>>
> >> --
> >> Marco Antoniotti
> > http://bioinformatics.nyu.edu
> > NYU Courant Bioinformatics Group tel. +1 - 212 - 998 3488
> > 715 Broadway 10th FL fax. +1 -
> 212 - 998 3484
> > New York, NY, 10003, U.S.A.
> >
> >
> --
> Marco Antoniotti
http://bioinformatics.nyu.edu
NYU Courant Bioinformatics Group tel. +1 - 212 - 998 3488
715 Broadway 10th FL fax. +1 - 212 - 998 3484
New York, NY, 10003, U.S.A.