Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / lib / site_perl / 5.8.0 / sun4-solaris / Tk / LabFrame.pod
CommitLineData
86530b38
AT
1
2=head1 NAME
3
4Tk::LabFrame - labeled frame.
5
6=for pm Tixish/LabFrame.pm
7
8=for category Tix Extensions
9
10=head1 SYNOPSIS
11
12S< >B<use Tk::LabFrame;>
13
14S< >I<$f> = I<$parent>-E<gt>B<LabFrame>(?B<-label>=E<gt>I<text>,
15B<-labelside>=E<gt>I<where>, ...?);
16
17=head1 DESCRIPTION
18
19B<LabFrame> is exactly like B<Frame> and additionaly allows to
20add a label to the frame.
21
22=head1 WIDGET-OPTIONS
23
24B<LabFrame> supports the same options as the
25L<Frame|Tk::Frame/"STANDARD OPTIONS"> widget.
26
27Additional options of B<LabFrame> are:
28
29=over 4
30
31=item B<-label> =E<gt> I<text>
32
33The text of the label to be placed with the Frame.
34
35=item B<-labelside> =E<gt> I<where>
36
37I<Where> can be one of B<left>, B<right>, B<top>, B<bottom> or B<acrosstop>.
38The first four work as might be expected and place the label to the
39left, right, above or below the frame respectively. The B<acrosstop>
40creates a grooved frame around the central frame and puts the label
41near the northwest corner such that it appears to "overwrite" the
42groove.
43
44=back
45
46=head1 EXAMPLE
47
48Run the following test program to see this in action:
49
50 use strict;
51 use Tk;
52 require Tk::LabFrame;
53 require Tk::LabEntry;
54
55 my $test = 'Test this';
56 my $mw = Tk::MainWindow->new;
57 my $f = $mw->LabFrame(-label => "This is a label",
58 -labelside => "acrosstop");
59 $f->LabEntry(-label => "Testing", -textvariable => \$test)->pack;
60 $f->pack;
61 Tk::MainLoop;
62
63=head1 BUGS
64
65Perhaps B<LabFrame> should be subsumed within the generic pTk
66labeled widget mechanism.
67
68=head1 AUTHOR
69
70B<Rajappa Iyer> rsi@earthling.net
71
72This code is derived from LabFrame.tcl and LabWidg.tcl in the Tix4.0
73distribution by Ioi Lam. The code may be redistributed under the same
74terms as Perl.
75
76=cut
77