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

Label text

 [1/6] from: ddalley::idirect::com at: 29-Nov-2001 18:53


Hi, REBOLs: Is there a way to control whether a label's text, if more than one word, is on one or two lines? I have a two-word label name that should be on two lines, but the interface wants to use one line. Donald Dalley

 [2/6] from: greggirwin:mindspring at: 29-Nov-2001 17:47


Hi Donald, << Is there a way to control whether a label's text, if more than one word, is on one or two lines? I have a two-word label name that should be on two lines, but the interface wants to use one line. >> If you're using 'text for the label, it seems to ignore newlines. I suppose you could get the width of each word and set the width of the label to the longer of the two. That should force it to word wrap. Pretty kludgey though. You might also look at using the area control with an edge of none, since that will respect newlines. --Gregg

 [3/6] from: brett:codeconscious at: 30-Nov-2001 11:49


Hi Donald, Gregg, There is a keyword you can use - "as-is". See this: view layout [label as-is {on^/two lines}] HTH Brett.

 [4/6] from: rotenca:telvia:it at: 30-Nov-2001 2:15


Hi Brett, it was time that i asked to me what as-is is used for. Has it others uses? Thanks! --- Ciao Romano

 [5/6] from: brett:codeconscious at: 30-Nov-2001 12:33


Hi Romano,
> it was time that i asked to me what as-is is used for. > > Has it others uses?
I suspect not. Have a look at the first line of the code that is printed by executing this: layout [t: label "test"] print mold t/init Brett

 [6/6] from: greggirwin:mindspring at: 30-Nov-2001 9:54


<< There is a keyword you can use - "as-is". >> Thanks Brett! --Gregg