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
marco.zorcic
Posted - 10/18/2006 : 11:08:33 AM Hi all,
my problems are like this:
I load my graph (a template) and the text is already insert in the layer (in the color gray). Now I won't to write the text new with the following code.
GraphLayer glSum; GraphObject goSum; glSum=gpSumTest.Layers(0); goSum=glSum.GraphObjects("Text"); strLabelText.Format("f / Ghz \n S11 / dB \n S12 / dB \n S21 / dB \n S22 / dB"); goSum.Text=strLabelText;
And my problem is, I don't know how can I change the color of the string strLabelText
thanks
4 L A T E S T R E P L I E S (Newest First)
Mike Buess
Posted - 10/19/2006 : 07:58:17 AM
quote:Is there anywhere a reference, for this stuff?
Not that I know of. Use out_tree(goSum.Label) to find all Label properties.
quote:when I execute your code, comes a error message with "TEXT.COLOR isn't a valid name"??
int iColor=2; // assign iColor the desired value of the color string strColor; strColor.Format("%d",iColor); string strLTcommand=goSum.GetName()+".color="+strColor; LT_execute(strLTcommand);