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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 create text object

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
winflowers Posted - 08/03/2006 : 04:38:34 AM
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!
1   L A T E S T    R E P L I E S    (Newest First)
Mike Buess Posted - 08/03/2006 : 07:34:15 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000