/usr/share/doc/gcl-doc/gcl-tk/frame.html is in gcl-doc 2.6.12-29.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
<head>
<title>GCL TK Manual: frame</title>
<meta name="description" content="GCL TK Manual: frame">
<meta name="keywords" content="GCL TK Manual: frame">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="index.html#Top" rel="start" title="Top">
<link href="wm.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Widgets.html#Widgets" rel="up" title="Widgets">
<link href="label.html#label" rel="next" title="label">
<link href="message.html#message" rel="prev" title="message">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.indentedblock {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
div.smalllisp {margin-left: 3.2em}
kbd {font-style:oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nocodebreak {white-space:nowrap}
span.nolinebreak {white-space:nowrap}
span.roman {font-family:serif; font-weight:normal}
span.sansserif {font-family:sans-serif; font-weight:normal}
ul.no-bullet {list-style: none}
-->
</style>
</head>
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<a name="frame"></a>
<div class="header">
<p>
Next: <a href="label.html#label" accesskey="n" rel="next">label</a>, Previous: <a href="message.html#message" accesskey="p" rel="prev">message</a>, Up: <a href="Widgets.html#Widgets" accesskey="u" rel="up">Widgets</a> [<a href="wm.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
<hr>
<a name="frame-1"></a>
<h3 class="section">2.12 frame</h3>
<p>frame \- Create and manipulate frame widgets
</p><a name="Synopsis-11"></a>
<h4 class="unnumberedsubsec">Synopsis</h4>
<p><b>frame</b><i> </i><i>pathName </i><span class="roman">?</span><b>:class </b><i>className</i><span class="roman">? ?</span><i>options</i>?
</p><a name="Standard-Options-11"></a>
<h4 class="unnumberedsubsec">Standard Options</h4>
<div class="example">
<pre class="example">background cursor relief
borderWidth geometry
</pre></div>
<p>See <a href="options.html#options">options</a>, for more information.
</p><a name="Arguments-for-Frame"></a>
<h4 class="unnumberedsubsec">Arguments for Frame</h4>
<dl compact="compact">
<dt><code><b>:height</b></code></dt>
<dd><p align="right">Name=<code>"<b>height</b><span class="roman">"</span> Class=<code>"</code><b>Height</b>"</code>
</p><br>
<p>Specifies the desired height for the window in any of the forms
acceptable to <b>Tk_GetPixels</b>.
This option is only used if the <b>:geometry</b> option is
unspecified.
If this option is less than or equal to zero (and <b>:geometry</b>
is not specified) then the window will not request any size at
all.
</p></dd>
</dl>
<dl compact="compact">
<dt><code><b>:width</b></code></dt>
<dd><p align="right">Name=<code>"<b>width</b><span class="roman">"</span> Class=<code>"</code><b>Width</b>"</code>
</p><br>
<p>Specifies the desired width for the window in any of the forms
acceptable to <b>Tk_GetPixels</b>.
This option is only used if the <b>:geometry</b> option is
unspecified.
If this option is less than or equal to zero (and <b>:geometry</b>
is not specified) then the window will not request any size at
all.
</p></dd>
</dl>
<a name="Description-8"></a>
<h4 class="unnumberedsubsec">Description</h4>
<p>The <b>frame</b> command creates a new window (given by the
<i>pathName</i> argument) and makes it into a frame widget.
Additional
options, described above, may be specified on the command line
or in the option database
to configure aspects of the frame such as its background color
and relief. The <b>frame</b> command returns the
path name of the new window.
</p>
<p>A frame is a simple widget. Its primary purpose is to act as a
spacer or container for complex window layouts. The only features
of a frame are its background color and an optional 3-D border to make the
frame appear raised or sunken.
</p>
<p>In addition to the standard options listed above, a <b>:class</b>
option may be specified on the command line. If it is specified, then
the new widget’s class will be set to <i>className</i> instead of
<b>Frame</b>. Changing the class of a frame widget may be useful
in order to use a special class name in database options referring
to this widget and its children. Note: <b>:class</b> is handled
differently than other command-line options and cannot be specified
using the option database (it has to be processed
before the other options are even looked up, since the new class
name will affect the lookup of the other options). In addition,
the <b>:class</b> option may not be queried or changed using the
<b>config</b> command described below.
</p>
<a name="A-Frame-Widget_0027s-Arguments"></a>
<h4 class="unnumberedsubsec">A Frame Widget’s Arguments</h4>
<p>The <b>frame</b> command creates a new Tcl command whose
name is the same as the path name of the frame’s window. This
command may be used to invoke various
operations on the widget. It has the following general form:
</p>
<div class="example">
<pre class="example"><i>pathName option </i><span class="roman">?</span><i>arg arg ...</i>?
</pre></div>
<p><i>PathName</i> is the name of the command, which is the same as
the frame widget’s path name. <i>Option</i><span class="roman"> and the </span><i>arg</i>s
determine the exact behavior of the command. The following
commands are possible for frame widgets:
</p>
<dl compact="compact">
<dt><i>pathName </i><b>:configure</b><span class="roman"> ?</span><i>option</i><span class="roman">? </span><i>?value option value ...</i>?</dt>
<dd><p>Query or modify the configuration options of the widget.
If no <i>option</i> is specified, returns a list describing all of
the available options for <i>pathName</i><span class="roman"> (see </span><b>Tk_ConfigureInfo</b> for
information on the format of this list). If <i>option</i> is specified
with no <i>value</i>, 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 <i>option</i> is specified). If
one or more <i>option:value</i> 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.
<i>Option</i><span class="roman"> may have any of the values accepted by the </span><b>frame</b>
command.
</p>
</dd>
</dl>
<a name="Bindings-5"></a>
<h4 class="unnumberedsubsec">Bindings</h4>
<p>When a new frame is created, it has no default event bindings:
frames are not intended to be interactive.
</p>
<a name="Keywords-11"></a>
<h4 class="unnumberedsubsec">Keywords</h4>
<p>frame, widget
</p><hr>
<div class="header">
<p>
Next: <a href="label.html#label" accesskey="n" rel="next">label</a>, Previous: <a href="message.html#message" accesskey="p" rel="prev">message</a>, Up: <a href="Widgets.html#Widgets" accesskey="u" rel="up">Widgets</a> [<a href="wm.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
</div>
</body>
</html>
|