1Frame(3)              User Contributed Perl Documentation             Frame(3)
2
3
4

NAME

6       Tk::Frame - Create and manipulate Frame widgets
7

SYNOPSIS

9           $frame = $parent->Frame(?options?);
10

STANDARD OPTIONS

12       -borderwidth   -highlightbackground     -highlightthickness -takefocus
13       -class    -highlightcolor     -relief -cursor
14
15       See Tk::options for details of the standard options.
16

WIDGET-SPECIFIC OPTIONS

18       Name:     background
19       Class:    Background
20       Switch:   -background
21           This option is the same as the standard background option except
22           that its value may also be specified as an undefined value.  In
23           this case, the widget will display no background or border, and no
24           colors will be consumed from its colormap for its background and
25           border.
26
27       Name:     colormap
28       Class:    Colormap
29       Switch:   -colormap
30           Specifies a colormap to use for the window.  The value may be
31           either new, in which case a new colormap is created for the window
32           and its children, or the name of another window (which must be on
33           the same screen and have the same visual as $widget), in which case
34           the new window will use the colormap from the specified window.  If
35           the colormap option is not specified, the new window uses the same
36           colormap as its parent.  This option may not be changed with the
37           configure method.
38
39       Name:     container
40       Class:    Container
41       Switch:   -container
42           The value must be a boolean.  If true, it means that this window
43           will be used as a container in which some other application will be
44           embedded (for example, a Tk toplevel can be embedded using the -use
45           option).  The window will support the appropriate window manager
46           protocols for things like geometry requests.  The window should not
47           have any children of its own in this application.  This option may
48           not be changed with the configure method.
49
50       Name:     height
51       Class:    Height
52       Switch:   -height
53           Specifies the desired height for the window in any of the forms
54           acceptable to Tk_GetPixels.  If this option is less than or equal
55           to zero then the window will not request any size at all.
56
57       Name:     visual
58       Class:    Visual
59       Switch:   -visual
60           Specifies visual information for the new window in any of the forms
61           accepted by Tk_GetVisual.  If this option is not specified, the new
62           window will use the same visual as its parent.  The visual option
63           may not be modified with the configure method.
64
65       Name:     width
66       Class:    Width
67       Switch:   -width
68           Specifies the desired width for the window in any of the forms
69           acceptable to Tk_GetPixels.  If this option is less than or equal
70           to zero then the window will not request any size at all.
71

DESCRIPTION

73       The Frame method creates a new window (given by the $widget argument)
74       and makes it into a frame widget.  Additional options, described above,
75       may be specified on the command line or in the option database to
76       configure aspects of the frame such as its background color and relief.
77       The frame command returns the path name of the new window.
78
79       A frame is a simple widget.  Its primary purpose is to act as a spacer
80       or container for complex window layouts.  The only features of a frame
81       are its background color and an optional 3-D border to make the frame
82       appear raised or sunken.
83

WIDGET METHODS

85       The Frame method creates a widget object.  This object supports the
86       configure and cget methods described in Tk::options which can be used
87       to enquire and modify the options described above.  The widget also
88       inherits all the methods provided by the generic Tk::Widget class.
89

BINDINGS

91       When a new frame is created, it has no default event bindings: frames
92       are not intended to be interactive.
93

KEYWORDS

95       frame, widget
96
97
98
99perl v5.34.0                      2021-07-23                          Frame(3)
Impressum