::SetState
This command enable or disables the mdlFileName widget based on the state parameter.
Syntax
::model::mdlFileName::SetState path state
Application
MotionView Tcl GUI
Description
This command enable or disables the mdlFileName widget based on the state parameter.
Inputs
- path
- The full path to the mdlFileName widget of interest. This argument is the return value of the ::model::mdlFileName procedure used to create an mdlFileName.
- state
- Bool value:
- True
- Enables the widget.
- False
- Disables the widget.
Example
::model::GetClientHandle clnt
clnt GetModelHandle mdl
clnt ReleaseHandle
mdl InterpretEntity entArray SolverArray sa_0 "\"Array 0\"" "IC"
mdl ReleaseHandle
set dlg [toplevel .dlg]
set frm [frame $dlg.frm -padx 10 -pady 10]
grid $frm -row 1 -column 0 -sticky nesw
model::mdlFileName::SetState $fn false
entArray ReleaseHandle
Errors
None.