::SetLabelText

This command sets the label text for an mdlCollector widget.

Syntax

::model::mdlCollector::SetLabelText path label_text

Application

MotionView Tcl GUI

Description

This command sets the label text for an 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.
label_text
New text for the label.

Example

To set the label text 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 \
          -label "Label:" ]
grid $coll -row 0 -column 0

::model::mdlCollector::SetLabelText $coll "New Label:"

mrk ReleaseHandle

Errors

None.