::mdlOption
This command will be used to create an option widget (combobox).
Syntax
::model::mdlOption frmPath entityHandle dm
Application
MotionView Tcl
Description
This command will be used to create an option widget (combobox).
Inputs
- path
- The frame on which the option widget will be created is passed as an argument.
- entityHandle
- We need to pass the handle of the entity which contains the option data member.
- dm
- We need to pass the name of the data member that contains the list of option values.
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
Errors
On successful execution of the command, it will create an option widget.