::UnsetEntryText

This command resets the mdlEvalEntry widget to its default behavior of displaying the evaluated value. This essentially undoes the effects of the model::mdl3StateEntry::SetEntryText procedure.

Syntax

::model::mdl3StateEntry::UnsetEntryText path

Application

MotionView Tcl GUI

Description

This command resets the mdlEvalEntry widget to its default behavior of displaying the evaluated value. This essentially undoes the effects of the model::mdl3StateEntry::SetEntryText procedure.

Inputs

path
The full path to the mdl3StateEntry widget of interest. The path argument is the return value of the model::mdl3StateEntry procedure used to create an mdl3StateEntry.

Example

To reset the display behavior of an mdl3StateEntry widget:
model::GetClientHandle clnt
clnt GetModelHandle mdl
clnt ReleaseHandle
mdl InterpretEntity entPnt Point p_0 "\"Point 0\"" 
mdl ReleaseHandle

set dlg [toplevel .dlg]
set frm [frame $dlg.frm -padx 10 -pady 10]
grid $frm -row 0 -column 0 -sticky nesw

set lbl [ label $dlg.frm.lbl -text "X" -width 3 -anchor w ]
grid $lbl -row 0 -column 0 -sticky nws

set stEntry  [model::mdl3StateEntry .dlg.frm.stEntry entPnt "x" ]
grid $stEntry  -row 0 -column 1

model::mdl3StateEntry::SetEntryText $stEntry "Forced Text" 1

model::mdl3StateEntry::UnsetEntryText $stEntry

entPnt ReleaseHandle

Errors

None.