::SetLabelText

This command sets the label text for an mdlComboBox widget.

Syntax

::model::mdlComboBox::SetLabelText path label_text

Application

MotionView Tcl GUI

Description

This command sets the label text for an mdlComboBox widget.

Inputs

path
The full path to the mdlComboBox widget of interest. This argument is the return value of the ::model::mdlComboBox procedure used to create an mdlComboBox.
label_text
New text for the label.

Example

To set the label text for an mdlComboBox 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::mdlComboBox .dlg.frm.cb entCrv $data -label "Curve type:" ]
grid $cb -row 0 -column 0

::model::mdlComboBox::SetLabelText $cb "New Label:"

entCrv ReleaseHandle

Errors

None.