::SetState

This command will enable or disable the mdlSymCheckBox widget based on the input value.

Syntax

::model::mdlSymCheckBox::SetState frmPath argState

Application

MotionView Tcl

Description

This command will enable or disable the mdlSymCheckBox widget based on the input value.

Inputs

frmPath
This argument takes the path of the mdlSymCheckBox widget as input, which needs to be enabled or disabled.
argState
We need to pass either true or false to this argument to enable or disable the mdlSymCheckBox widget.

Example

::model::GetClientHandle client
client GetModelHandle mod
mod InterpretEntity pbshandle PointMassBodyPair pb_0 "\"PointMassBody0\""
set top [toplevel .test]
set colFrm [frame $top.tmpFrm1 ]
pack $colFrm
set sym_cb [::model::mdlSymCheckBox $colFrm.sym_cb pbshandle -items { "mass" }]
pack $sym_cb
::model::mdlSymCheckBox::SetState $sym_cb true
client ReleaseHandle
mod ReleaseHandle
pbshandle ReleaseHandle

Errors

On successful execution of the command, it will enable or disable the mdlSymCheckBox widget.