The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Textsize in Labels
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Thomas M

Germany
Posts

Posted - 05/27/2005 :  08:29:12 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Mike Buess

USA
3037 Posts

Posted - 05/27/2005 :  10:15:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Thomas M

Germany
Posts

Posted - 05/30/2005 :  02:06:52 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
*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
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 05/30/2005 :  07:00:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Thomas M

Germany
Posts

Posted - 05/30/2005 :  09:57:14 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
THAT works! :)

Thank you!
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 05/30/2005 :  12:34:57 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Thomas M

Germany
Posts

Posted - 05/31/2005 :  04:47:32 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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! :)
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000