| T O P I C R E V I E W |
| Thomas M |
Posted - 05/27/2005 : 08:29:12 AM Origin Version (Select Help-->About Origin): 6.0 Operating System: W98
Hello everybody,
I have a little Syntax-Problem with the Textsize for Labels. I want to create a label with the double Textsize.
label -s -sa -d 800 400 "Here comes the \n Text";
works fine. But when I try to add the "\p%pointsize(text)" Command it doesnt work. At least for the way I interpreted it:
label -s -sa -d 800 400 \p%200("Here is the \n Text");
the result is a Text half the size, but replacing 200 with 50 gives also not the wished result. Furthermore, the second " appears in the textwindow now. So something is going wrong. Any suggestions?
Thanks in advance, Thomas |
| 6 L A T E S T R E P L I E S (Newest First) |
| Thomas M |
Posted - 05/31/2005 : 04:47:32 AM Hm, his leads me to a new question. Why are there at least 3 diffrent ways in LabTalk (Not to mention Origin C) to change only one parameter, Textsize in this case? Are all these comands ( \p200(), \c2(), -n MyLabel) so much diferent in the background? It is nice to have a lot of options, but sometimes it looks a little bit overcrowded and it is hard to say wich syntax fits best for a special problem. Independently from that, it is a great program, wich makes a lot of things much, much, much more easier! :) |
| Mike Buess |
Posted - 05/30/2005 : 12:34:57 PM Here's a solution using your original method...
label -s -sa -d 800 400 "\p200(Here is the)\n\p200(Text)";
Note that the \p() formatting is applied to each line.
Mike Buess Origin WebRing Member |
| Thomas M |
Posted - 05/30/2005 : 09:57:14 AM THAT works! :)
Thank you! |
| Mike Buess |
Posted - 05/30/2005 : 07:00:19 AM Sorry, I misunderstood the real problem. I don't believe that \x() formatting can extend across multiple lines. Same or similar thing happens with this...
label -s -sa -d 800 400 \c2("Here is the \n Text");
"Here is the Text")
Use this approach to double the font size for a single or multiple line label...
label -s -sa -d 800 400 -n MyLabel "Here is the \nText"; MyLabel.fsize *= 2;
Mike Buess Origin WebRing Member
Edited by - Mike Buess on 05/30/2005 07:26:15 AM |
| Thomas M |
Posted - 05/30/2005 : 02:06:52 AM *edit*
I've tried as suggested, but there was no improvement. Textsize is still 12, and it prints:
Here is the text")
Including the quotation marks and the close bracket at the end.
Any suggestions for work-arounds?
Thank you,
Thomas
Edited by - Thomas M on 05/30/2005 04:58:10 AM |
| Mike Buess |
Posted - 05/27/2005 : 10:15:20 AM Hi Thomas,
The % symbol does not belong there. Try this...
label -s -sa -d 800 400 \p200("Here is the \n Text");
Mike Buess Origin WebRing Member |