SYNOPSISlabeledwidget pathName ?options?INHERITANCEitk::Widget <- labeledwidgetSTANDARD OPTIONS
See the "options" manual entry for details on the standard options. WIDGET-SPECIFIC OPTIONS
Name: disabledForeground Class: DisabledForeground Command-Line Switch: -disabledforeground
Name: labelBitmap Class: Bitmap Command-Line Switch: -labelbitmap
Name: labelFont Class: Font Command-Line Switch: -labelfont
Name: labelImage Class: Image Command-Line Switch: -labelimage
Name: labelMargin Class: Margin Command-Line Switch: -labelmargin
Name: labelPos Class: Position Command-Line Switch: -labelpos
Name: labelText Class: Text Command-Line Switch: -labeltext
Name: labelVariable Class: Variable Command-Line Switch: -labelvariable
Name: state Class: State Command-Line Switch: -state
DESCRIPTIONThe labeledwidget command creates a labeled widget which contains a label and child site. The child site is a frame which can filled with any widget via a derived class or though the use of the childsite method. This class was designed to be a general purpose base class for supporting the combination of label widget and a childsite. The options include the ability to position the label around the childsite widget, modify the font and margin, and control the display of the labels. METHODSThe labeledwidget command creates a new Tcl command whose name is pathName. This command may be used to invoke various operations on the widget. It has the following general form: pathName option ?arg arg ...?Option and the args determine the exact behavior of the command. The following commands are possible for labeledwidget widgets: WIDGET-SPECIFIC METHODS
STATIC METHODS
COMPONENTS
Name: label Class: label
Name: lwchildsite Class: frame
|
EXAMPLE
-
The labeledwidget was primarily meant to be a base class. The
ScrolledListBox and EntryField are good examples of derived
subjects of the labeledwidget class. In order to provide equal
support for composite subjects, the 'childsite' methods also exists.
The following is an example of 'childsite' method usage.
labeledwidget .lw -labeltext "Canvas Widget" -labelpos s pack .lw -fill both -expand yes -padx 10 -pady 10 set cw [canvas [.lw childsite].c -relief raised -width 200 -height 200] pack $cw -padx 10 -pady 10