::SetText

This command will be used to set the text in the entry portion of the mdlTempCollector widget. This will make the mdlTempCollector appear to be resolved to this specified text, but when the referenced varname is requested from the mdlTempCollector widget, the value stored in the associated variable is returned.

Syntax

::model::mdlTempCollector::SetText argFrm argText argValue

Application

MotionView Tcl

Description

This command will be used to set the text in the entry portion of the mdlTempCollector widget. This will make the mdlTempCollector appear to be resolved to this specified text, but when the referenced varname is requested from the mdlTempCollector widget, the value stored in the associated variable is returned.

Inputs

argFrm
We need to pass the path of the mdlTempCollector widget in the above argument, for which we want to set the text for.
argValue
This is the text value that will be displayed as the selected reference for the mdlTempCollector.

Example

set selected_point ""
set top [toplevel .test]
set colFrm [frame $top.tmpFrm1 ]
pack $colFrm
set point_col [::model::mdlTempCollector $colFrm.ptcol ::selected_point "Point" "Point" ]
pack $point_col
::model::mdlTempCollector::SetText $point_col "B_Ground"

Errors

On successful execution of the command, the new text will be displayed in the entry of the mdlTempCollector widget.