=head1 NAME Tk::LabFrame - labeled frame. =for pm Tixish/LabFrame.pm =for category Tix Extensions =head1 SYNOPSIS S< >B S< >I<$f> = I<$parent>-EB(?B<-label>=EI, B<-labelside>=EI, ...?); =head1 DESCRIPTION B is exactly like B and additionaly allows to add a label to the frame. =head1 WIDGET-OPTIONS B supports the same options as the L widget. Additional options of B are: =over 4 =item B<-label> =E I The text of the label to be placed with the Frame. =item B<-labelside> =E I I can be one of B, B, B, B or B. The first four work as might be expected and place the label to the left, right, above or below the frame respectively. The B creates a grooved frame around the central frame and puts the label near the northwest corner such that it appears to "overwrite" the groove. =back =head1 EXAMPLE Run the following test program to see this in action: use strict; use Tk; require Tk::LabFrame; require Tk::LabEntry; my $test = 'Test this'; my $mw = Tk::MainWindow->new; my $f = $mw->LabFrame(-label => "This is a label", -labelside => "acrosstop"); $f->LabEntry(-label => "Testing", -textvariable => \$test)->pack; $f->pack; Tk::MainLoop; =head1 BUGS Perhaps B should be subsumed within the generic pTk labeled widget mechanism. =head1 AUTHOR B 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 terms as Perl. =cut