Lisp HUG Maillist Archive

Can a push-button have more than one line of text?

Is it possible for a capi:push-button to display its text on more than 
one line?

Mitch


Re: Can a push-button have more than one line of text?

On Tue, Jan 29, 2008 at 12:02:51PM -0500, Mitch Berkson wrote:
> Is it possible for a capi:push-button to display its text on more
> than one line?

(capi:contain (make-instance 'capi:button
                             :text (format nil "line1~%line2")))

worked for me.

Getting it to word-wrap all by itself could be a challenge.  :)  Is
that what you meant?

-- L


Re: capi:item-pinboard-object doesn't take :font?

On Sat, 02 Feb 2008 13:17:19 -0500, Mitch Berkson <mitch@bermita.com> wrote:

> On LWW, item-pinboard-object is influenced by some :graphics-args,
> but not by :font. Is that right and is there a way to specify the
> font of an item-pinboard-object?  Thank you.
>
> Mitch
>
> (capi:contain (make-instance 'capi:item-pinboard-object :text
> "testing" :graphics-args '(:foreground :red :background :green)))
>
> but not
>
> (capi:contain (make-instance 'capi:item-pinboard-object :text "asdfsa"
> :graphics-args '(:foreground :red :font (gp:make-font-description
>     :family "arial"
>     :size 24
>     :weight :bold))))

Give the font argument to the layout:

  (let ((object (make-instance 'capi:item-pinboard-object
                               :text "testing"
                               :graphics-args '(:foreground :red 
                                                :background :green))))
    (capi:contain (make-instance 'capi:simple-pinboard-layout
                                 :font (gp:make-font-description :family "arial"
                                                                 :size 24
                                                                 :weight :bold)
                                 :description (list object))))

Edi.


Re: capi:item-pinboard-object doesn't take :font?

On Sat, 02 Feb 2008 20:18:30 +0100, "Arthur Lemmens" <alemmens@xs4all.nl> wrote:

> Or use the result of a call to GP:GF

That doesn't count because you're using internal knowledge... )

Seriously - what does that function do and what is it good for?  I
couldn't find it in the documentation?

Thanks,
Edi.


Updated at: 2020-12-10 08:44 UTC