::GetCurrentDisplayText
The above command will be used to get the current value in the mdlStringEntry widget.
Syntax
::model::mdlStringEntry::GetCurrentDisplayText frmPath
Application
MotionView Tcl
Description
The above command will be used to get the current value in the mdlStringEntry widget.
Inputs
- frmPath
- We need to pass the path of the mdlStringEntry widget in the above argument from which we need to get the value.
Example
::model::GetClientHandle client
client GetModelHandle mod
mod InterpretEntity dshandle DataSet ds_0 "\"DataSet 0\"" ds_def_0
dshandle InterpretEntity dsshandle String dss_0 "\"DSstring0\""
set top [toplevel .test]
set colFrm [frame $top.tmpFrm1 ]
pack $colFrm
set w [::model::mdlStringEntry $colFrm.str dsshandle]
pack $w
client ReleaseHandle
mod ReleaseHandle
dsshandle ReleaseHandle
dshandle ReleaseHandle
::model::mdlStringEntry::GetCurrentDisplayText $w
Errors
On successful execution of the command, it will return the text in the mdlStringEntry widget.