I am trying to create transient mtext with colors altered. I have tried changing the colorindex property and also imbedding the color property into the contents. The former doesn't appear to do anything while the latter will not properly imbed the string.
For example:
color = 2, txt = "Low Pt"
The label contents will be "{\\C2;Low Pt}" in a debug windows, but it appears as "\C2;Low Pt" on screen.
Am I missing something?
Private Sub showlabel(ByVal txt As String, ByVal pt As Point3d, ByVal color As Integer)
Dim label As New MText
label
.Contents = " {" + Chr(92) + Chr(92) + "C" + color
.ToString + ";" + txt
+ "}" 'label.Contents = " " + txt
label.Location = pt
label.TextHeight = settings.Size / 2
label.ColorIndex = color
m_mrkers.Add(label)
aGi.TransientManager.CurrentTransientManager.AddTransient(label, aGi.TransientDrawingMode.DirectShortTerm, 128, intColl)
End Sub