::GetCurrentDisplayText

This command gets the current text in an mdlFileName widget.

Syntax

::model::mdlFileName::GetCurrentDisplayText path

Application

MotionView Tcl GUI

Description

This command gets the current text in an mdlFileName widget.

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.

Example

To get the current selection of the value of an mdlFileName widget:
::model::GetClientHandle clnt
clnt GetModelHandle mdl
clnt ReleaseHandle
mdl InterpretEntity entCrv Curve crv_0 "\"Curve 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 data { "2D Cartesian" "2D Parametric" "3D Cartesian" "3D Parametric"}
set cb [::model::mdFileName .dlg.frm.cb entCrv $data -label "Curve type:" ]
grid $cb -row 0 -column 0

set value [ ::model::mdFileName::GetCurrentDisplayText $cb ]

entCrv ReleaseHandle

Errors

None.