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
 Forum for Origin C
 create text object
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

winflowers

USA
34 Posts

Posted - 08/03/2006 :  04:38:34 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): Origin 7.5 SR6
Operating System: Windows XP SP2

Is it possible to create a text object with OriginC? It seems I can only use LT_excute("Label -n Text ttt");

Another question is how to set the Font for this text object? In the help, it says that the font can be set using option "-f fontname", but I couldn't get it by either using "Label -f Tahoma -n Text ttt" or "Label -n Text -f Tahoma Text "ttt"".

By the way, which font is used in the input window of Text Control Dialog? It's a monospaced font, and I would like use it for the text object.

Any comments are appreciated!

Mike Buess

USA
3037 Posts

Posted - 08/03/2006 :  07:34:15 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
It seems I can only use LT_excute("Label -n Text ttt");
That's correct. There is no OriginC method for creating text labels.
quote:
Another question is how to set the Font for this text object?
Once the label is created it's easiest to use labelName.font.

GraphLayer gl = Project.ActiveLayer();
gl.LT_execute("label -n Text ttt");
gl.LT_execute("Text.font=font(Tahoma)");

Mike Buess
Origin WebRing Member
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