![]() |
ActiveTcl User Guide
|
![]() |
iwidgets::labeledframe - Create and manipulate a labeled frame
widget
iwidgets::labeledframe pathName
?options?
itk::Archetype <- iwidgets::Labeledframe
options.
childsite. The value may have any of the forms acceptable to
childsite. The value may have any of the forms acceptable to
acceptable to Tk_GetBitmap. This option overrides the
labeltext option.
of the values created by the image create command. This option overrides both the labelbitmap and labeletext options.
relief, and the label in any of the forms acceptable to Tk_Get-
the hull widget.
ne, n, nw, se, s, sw,
en, e, es, wn, w, ws
Default is n.
_________________________________________________________________
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 posi- tion the label at configurable locations within the grooved relief of the hull frame, and control the display of the label.
whose name is pathName. This command may be used to invoke vari- ous operations on the widget. It has the following general form:
pathName option ?arg arg ...?
pathName childsite
pathName cget option
option. Option may have any of the values accepted
by the iwid- gets::labeledframe command.
pathName configure ?option? ?value
option value ...?
option is specified, returns a list describing all of the avail- able 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 iwidgets::labeledframe command.
ponent item.
frame class. In order to provide equal support for composite classes, the `childsite' methods also exists. The following is an example of `childsite' method usage.
package require Iwidgets 4.0
iwidgets::labeledframe .lw -labeltext «Entry Frame»
-labelpos n pack .lw -fill both -expand yes -padx 10 -pady 10 set
cs [.lw childsite]
pack [iwidgets::entryfield $cs.entry1 -labeltext «Name:"] -side top -fill x pack [iwidgets::spinint $cs.entry2 -labeltext «Number:"] -side top -fill x pack [iwidgets::pushbutton $cs.entry3 -text «Details:"] -side top -fill x
labeledframe, widget