labeledframe - Create and manipulate a labeled frame widget
SYNOPSIS
labeledframe pathName ?options?INHERITANCE
itk::Archetype <- labeledframeSTANDARD OPTIONS
background relief |
borderwidth |
cursor |
foreground |
See the "options" manual entry for details on the standard options.
WIDGET-SPECIFIC OPTIONS
Name: iPadX Class: IPad Command-Line Switch: -ipadx
Name: iPadY Class: IPad Command-Line Switch: -ipady
Name: labelBitmap Class: Bitmap Command-Line Switch: -labelbitmap
Name: labelImage Class: Image Command-Line Switch: -labelimage
Name: labelMargin Class: Margin Command-Line Switch: -labelmargin
Name: labelText Class: Text Command-Line Switch: -labeltext
Name: labelVariable Class: Variable Command-Line Switch: -labelvariable
Name: labelFont Class: Font Command-Line Switch: -labelfont
Name: labelPos Class: Position Command-Line Switch: -labelpos
DESCRIPTION
The labeledframe command creates a hull frame with a grooved relief, a label positioned within the grooved relief of the hull frame, and a frame childsite. The frame childsite 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 labeled frame and a childsite. The options include the ability to position the label at configurable locations within the grooved relief of the hull frame, and control the display of the label.
METHODS
The labeledframe 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 labeledframe widgets:
WIDGET-SPECIFIC METHODS
- pathName childsite
- Return the path name of the child site.
- pathName cget option
- Returns the current value of the configuration option given by option. Option may have any of the values accepted by the labeledframe command.
- pathName configure ?option? ?value option value ...?
- Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by the labeledframe command.
COMPONENTS
Name: label Class: label
EXAMPLE
labeledframe .lw -labeltext "Entry Frame" -labelpos n pack .lw -fill both -expand yes -padx 10 -pady 10 set cs [.lw childsite] pack [Entryfield $cs.entry1 -labeltext "Name:"] -side top -fill x pack [Spinint $cs.entry2 -labeltext "Number:"] -side top -fill x pack [Pushbutton $cs.entry3 -text "Details:"] -side top -fill x