::SetLabelText
This command will set the text for a label just above the mdlTempListCollector widget.
Syntax
::model::mdlTempListCollector::SetLableText argFrm argText
Application
MotionView Tcl
Description
This command will set the text for a label just above the mdlTempListCollector widget.
Inputs
- argFrm
- We need to pass the path of the mdlTempCollector in the above argument, for which we want to display a text label.
- argText
- This argument is the text that is to be displayed as the label for the mdlTempCollector widget.
Example
set sel_pt ""
set sel_vec ""
set sel_type ""
set top [toplevel .test]
set colFrm [frame $top.tmpFrm1 ]
pack $colFrm
set types {{Point Point ::sel_pt} {Vector Vector ::sel_vec}}
set list_col [::model::mdlTempListCollector $colFrm.lcol ::sel_type "$types"]
pack $list_col
::model::mdlTempListCollector::SetLabelText $list_col "Name"
Errors
On successful execution of the command, the specified text will be set as the label for the mdlTempListCollector.