txtITextEditor SetEvaluated
Allows you to control the evaluation state of text client text.
Syntax
txtITextEditor_handle SetEvaluated state
Application
Tcl Modify
Description
The SetEvaluated command allows you to control whether or not the text in a text client window is displayed as it was entered (raw) or after Templex has evaluated it (evaluated). Valid values are true or false.
Example
To add the text specified to the first window on the first page and sets the evaluation
state to true
(1):
hwi GetSessionHandle session
session GetProjectHandle proj
proj GetPageHandle page 1
page GetWindowHandle win 1
win SetClientType TextEditor
win GetClientHandle txt
txt SetRawText "{var = \"a Templex string\"} Let's display {var}"
txt SetEvaluated true
txt Draw
The
code results in a return value of false.Error
The command returns false if unsuccessful.
Keywords
Text
Evaluated
Display