::SetState
This command sets the state of a CheckBox widget.
Syntax
::model::mdlCheckBox::SetState path state
Application
MotionView Tcl GUI
Description
This command sets the state of a CheckBox widget.
Inputs
- path
- The full path to the CheckBox of interest. The path argument is the return value of the ::model::mdlCheckBox procedure used to create a CheckBox.
- state
- 1 (true) for checked or 0 (false) for unchecked.
Example
::model::GetClientHandle clnt
clnt GetModelHandle mdl
clnt ReleaseHandle
mdl InterpretEntity bod Body b_0 "\"Body 0\"" "" ""
mdl ReleaseHandle
set dlg [toplevel .dlg];
set frm [frame $dlg.frm -padx 10 -pady 10]
grid $frm -row 0 -column 0 -sticky nesw
set chk_box [::model::mdlCheckBox .dlg.frm.chk_box bod "useflex" -label "Deformable" ]
grid $chk_box -row 0 -column 0
::model::mdlCheckBox::SetState $chk_box 1
bod ReleaseHandle
Errors
None.