::mdlCollector

This command creates a mdlCollector widget that is tied to a Reference data member of an existing entity in the model.

Syntax

::model::mdlCollector path entityHandle dm text args

Application

MotionView Tcl GUI

Description

This command creates a mdlCollector widget that is tied to a Reference data member of an existing entity in the model.

Inputs

path
The full path to the newly created widget.
entityHandle
A handle pointing to the entity that contains the data member.
dm
The name of the data member that will hold the value.
text
The text that appears on the selection button.
args
A list of '-' separated flags to configure the mdlFileName widget's behavior.

Example

To create 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

mrk ReleaseHandle

Errors

Returns the path to a mdlCollector widget if successful, otherwise an error code.