Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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)");