GefTextFormat.TranslateText (property)

Gets and sets the TranslateText flag.
Syntax: Boolean = object.TranslateText
object.TranslateText = Boolean
Description: When this property is true the static text as inidicated by the Text property of the object will be translated before it is displayed on the screen. If the object has a TextExpression configured the result of that evaluation will be displayed instead of the translated text. This property has no effect on the translation of the expression result.


Sub GefTextFormat_TranslateText()
    Dim oCimObj As GefObject
    Dim oCimTxtFmt As GefTextFormat
    Set oCimObj = CimGetObject
    Set oCimTxtFmt = oCimObj.TextFormat
    If Not oCimTxtFmt Is Nothing Then
        oCimTxtFmt.Text = "Water"
        oCimTxtFmt.TranslateText = True
        CimGetScreen.Refresh False
    End If
End Sub
See Also: TranslateExprResult