::SetLabelText
The above command will be used to create a label widget to the left of the option widget.
Syntax
::model::mdlOption::SetLabelText argFrm argText
Application
MotionView Tcl
Description
The above command will be used to create a label widget to the left of the option widget.
Inputs
- argFrm
- We need to pass the path of the option widget in the above argument for which we need to create a label widget.
- argText
- This argument will take the text of the label widget as input.
Example
set top [toplevel .test]
set colFrm [frame $top.tmpFrm1 ]
pack $colFrm
::model::GetHandleFromFullVarname dsms MODEL.DS_MotionSolve_Simopts
set optSimType [::model::mdlOption $colFrm.optSimType dsms "analysis_type"]
pack $optSimType
dsms ReleaseHandle
::model::mdlOption::SetLabelText $optSimType "NAME"
Errors
On successful execution of the command, a label widget will be created to the left of the option widget.