Thank you.

I had to replace number>text with number>string :

    500 <paragraph> 100 iota
    [ " " <word-break-gadget> add-gadget ]
    [ number>string <label> add-gadget ] interleave


Am Fri, 18 Sep 2015 09:54:25 -0700
schrieb John Benediktsson <mrj...@gmail.com>:

> Labels support printing multiple lines of text, but they don't
> relayout and word-wrap.
> 
> Paragraphs are used by the ui.gadgets.panes for this, and basically
> the way they work is you can add any gadget (but in this case a
> label-per-word) to them and "word break gadgets" to represent the
> whitespace, so it word-wraps properly:
> 
>     500 <paragraph> 100 iota
>     [ " " <word-break-gadget> add-gadget ]
>     [ number>text <label> add-gadget ] interleave
> 
> Perhaps we should wrap this logic into a multiline-label that does
> the word splitting and word wrapping for you for convenience.

------------------------------------------------------------------------------
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to