Tk::LabFrame - labeled frame.
=for pm Tixish/LabFrame.pm
=for category Tix Extensions
S< >I<$f> = I<$parent>-E<gt>B<LabFrame>(?B<-label>=E<gt>I<text>,
B<-labelside>=E<gt>I<where>, ...?);
B<LabFrame> is exactly like B<Frame> and additionaly allows to
add a label to the frame.
B<LabFrame> supports the same options as the
L<Frame|Tk::Frame/"STANDARD OPTIONS"> widget.
Additional options of B<LabFrame> are:
=item B<-label> =E<gt> I<text>
The text of the label to be placed with the Frame.
=item B<-labelside> =E<gt> I<where>
I<Where> can be one of B<left>, B<right>, B<top>, B<bottom> or B<acrosstop>.
The first four work as might be expected and place the label to the
left, right, above or below the frame respectively. The B<acrosstop>
creates a grooved frame around the central frame and puts the label
near the northwest corner such that it appears to "overwrite" the
Run the following test program to see this in action:
my $mw = Tk::MainWindow->new;
my $f = $mw->LabFrame(-label => "This is a label",
-labelside => "acrosstop");
$f->LabEntry(-label => "Testing", -textvariable => \$test)->pack;
Perhaps B<LabFrame> should be subsumed within the generic pTk
labeled widget mechanism.
B<Rajappa Iyer> rsi@earthling.net
This code is derived from LabFrame.tcl and LabWidg.tcl in the Tix4.0
distribution by Ioi Lam. The code may be redistributed under the same