Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

how to display multi-line text

 [1/4] from: pat665:ifrance at: 30-Dec-2001 10:22


Hi all rebol-lister Happy New Year to all, and a new FAQ. Patrick at Euro - 2 How to display multi-line text? Short answer: Using as-is and a negative height such as 400x-1 Problem illustration: ===================== rebol [] ;------------------------------- ; This program shows a one line text. ; The multi-line text to display ;------------------------------- myCode: {view center-face layout [ banner "Test" button "OK" ] } win: layout/size [ style code text black silver bold code 360x100 myCode ] 400x200 view center-face win Problem resolution: =================== win: layout/size [ style code text black silver bold as-is code 360x-1 myCode ] 400x200 Two things are needed : (1) the use of as-is in the style, (2) a pair with a negative height. Note : this answer comes from Carl Sassenrath's easyvid.r.

 [2/4] from: rebol::optushome::com::au at: 31-Dec-2001 5:48


----- Original Message ----- From: "Patrick Philipot" <[pat665--ifrance--com]> To: <[rebol-list--rebol--com]> Sent: Sunday, December 30, 2001 7:22 PM Subject: [REBOL] how to display multi-line text
> Hi all rebol-lister > > Happy New Year to all, and a new FAQ. > > Patrick at Euro - 2 > > How to display multi-line text? > > Short answer: > Using as-is and a negative height such as 400x-1
Hi Patrick, You don't need to specify the height at all. You can just specify the width. e.g view layout/size my-code: [ style code text black silver bold as-is code 360 mold my-code ] 400x200 Cheers, Allen K

 [3/4] from: rebol665:ifrance at: 30-Dec-2001 21:12


Thanks, You are right ! for my purpose, it's ok. Do you know by any chance why negative heights are used in easyvid.r ? I dare not ask the author :) Patrick

 [4/4] from: ammonjohnson:yah:oo at: 31-Dec-2001 16:03


Any idea how to do that with something like: alert mold error-object Thanks!! Ammon