::GetCurrentSelectionVarname

This command gets the full varname of the currently selected entry in a mdlCollector widget.

Syntax

::model::mdlCollector::GetCurrentSelectionVarname path

Application

MotionView Tcl GUI

Description

This command gets the full varname of the currently selected entry in a mdlCollector widget.

Inputs

path
The full path to the mdlCollector widget of interest. This argument is the return value of the ::model::mdlCollector procedure used to create an mdlCollector.

Example

To get the varname of the current selection of the value of an mdlCollector widget:
::model::GetClientHandle clnt
clnt GetModelHandle mdl
clnt ReleaseHandle
mdl InterpretEntity mrk Marker m_0 "\"Marker 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 coll [::model::mdlCollector .dlg.frm.coll mrk "origin" "Point" -reference ]
grid $coll -row 0 -column 0

set value  [ ::model::mdlCollector::GetCurrentSelectionVarname $coll ]

mrk ReleaseHandle

Errors

None.