::SetLabelText
This command sets the label text for an mdlComboBoxDM widget.
Syntax
::model::mdlComboBoxDM:SetLabelText path label_text
Application
MotionView Tcl GUI
Description
This command sets the label text for an mdlComboBoxDM widget.
Inputs
- path
- The full path to the mdlComboBoxDM of interest. This argument is the return value of the ::model::mdlComboBoxDM procedure used to create an mdlComboBoxDM.
- label_text
- New text for the label.
Example
::model::GetClientHandle clnt
clnt GetModelHandle mdl
clnt ReleaseHandle
mdl InterpretEntity entMot Motion mot_0 "\"Motion 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 { "DISP" "Displacement" "VEL" "Velocity" "ACCL" "Acceleration" }
set motion [::model::mdlComboBoxDM .dlg.frm.motion entMot "itype" $data -label "Type:"]
grid $motion -row 0 -column 0
::model::mdlComboBoxDM::SetLabelText $motion "New Label:"
entMot ReleaseHandle
Errors
None.