::mdlCheckBox

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

Syntax

::model::mdlCheckBox entityHandle dm args

Application

MotionView Tcl GUI

Description

This command creates a CheckBox widget that is tied to a 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.
args
A list of '-' separated flags to configure the CheckBox widget's behavior.

Example

To create an mdlCheckBox 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 chk_box [::model::mdlCheckBox .dlg.frm.chk_box mrk "floating" -label "Floating" \
            -enable true  ]
grid $chk_box -row 0 -column 0 

mrk ReleaseHandle

Errors

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