::SetDCButtonState
This command will be used to enable or disable the direction cosine button within the mdlOrientation widget.
Syntax
::model::mdlOrientation::SetDCButtonStatet argFrm argState
Application
MotionView Tcl
Description
This command will be used to enable or disable the direction cosine button within the mdlOrientation widget.
Inputs
- argFrm
- You need to pass the path of the mdlOrientation widget as the above argument, where you need to enable or disable the DC button.
- argState
- You need to pass either true or false to this argument to enable or disable the DC button.
Example
::model::GetClientHandle client
client GetModelHandle mod
mod InterpretEntity mrk Marker mrk_0 "\"Marker 0\"" "" ""
set top [toplevel .test]
set colFrm [frame $top.tmpFrm1 ]
pack $colFrm
set ornt [::model::mdlOrientation $colFrm.ornt mrk]
pack $ornt
client ReleaseHandle
mod ReleaseHandle
mrk ReleaseHandle
::model::mdlOrientation::SetDCButtonState $ornt true
Errors
On successful execution of the command, it will enable or disable the DC button in the mdlOrientation widget.