⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 options.html

📁 perl教程
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</li>
<dt><strong><a name="item_name_3a_pady">Name:	<strong>padY</strong></a></strong>

<dt><strong>Class:	<strong>Pad</strong></strong>

<dt><strong><a name="item_switch_3a__2dpady">Switch:	<strong>-pady</strong></a></strong>

<dd>
<p>Specifies a non-negative value indicating how much extra space
to request for the widget in the Y-direction.
The value may have any of the forms acceptable to <strong>Tk_GetPixels</strong>.
When computing how large a window it needs, the widget will add
this amount to the height it would normally need (as determined by
the height of the things displayed in the widget);  if the geometry
manager can satisfy this request, the widget will end up with extra
internal space above and/or below what it displays inside.
Most widgets only use this option for padding text:  if they are
displaying a bitmap or image, then they usually ignore padding
options.</p>
</dd>
</li>
<dt><strong><a name="item_name_3a_relief">Name:	<strong>relief</strong></a></strong>

<dt><strong><a name="item_class_3a_relief">Class:	<strong>Relief</strong></a></strong>

<dt><strong><a name="item_switch_3a__2drelief">Switch:	<strong>-relief</strong></a></strong>

<dd>
<p>Specifies the 3-D effect desired for the widget.  Acceptable
values are <strong>raised</strong>, <strong>sunken</strong>, <strong>flat</strong>, <strong>ridge</strong>,
<strong>solid</strong>, and <strong>groove</strong>.
The value
indicates how the interior of the widget should appear relative
to its exterior;  for example, <strong>raised</strong> means the interior of
the widget should appear to protrude from the screen, relative to
the exterior of the widget.</p>
</dd>
</li>
<dt><strong><a name="item_name_3a_repeatdelay">Name:	<strong>repeatDelay</strong></a></strong>

<dt><strong><a name="item_class_3a_repeatdelay">Class:	<strong>RepeatDelay</strong></a></strong>

<dt><strong><a name="item_switch_3a__2drepeatdelay">Switch:	<strong>-repeatdelay</strong></a></strong>

<dd>
<p>Specifies the number of milliseconds a button or key must be held
down before it begins to auto-repeat.  Used, for example, on the
up- and down-arrows in scrollbars.</p>
</dd>
</li>
<dt><strong><a name="item_name_3a_repeatinterval">Name:	<strong>repeatInterval</strong></a></strong>

<dt><strong><a name="item_class_3a_repeatinterval">Class:	<strong>RepeatInterval</strong></a></strong>

<dt><strong><a name="item_switch_3a__2drepeatinterval">Switch:	<strong>-repeatinterval</strong></a></strong>

<dd>
<p>Used in conjunction with <strong>repeatDelay</strong>:  once auto-repeat
begins, this option determines the number of milliseconds between
auto-repeats.</p>
</dd>
</li>
<dt><strong><a name="item_name_3a_selectbackground">Name:	<strong>selectBackground</strong></a></strong>

<dt><strong>Class:	<strong>Foreground</strong></strong>

<dt><strong><a name="item_switch_3a__2dselectbackground">Switch:	<strong>-selectbackground</strong></a></strong>

<dd>
<p>Specifies the background color to use when displaying selected
items.</p>
</dd>
</li>
<dt><strong><a name="item_name_3a_selectborderwidth">Name:	<strong>selectBorderWidth</strong></a></strong>

<dt><strong>Class:	<strong>BorderWidth</strong></strong>

<dt><strong><a name="item_switch_3a__2dselectborderwidth">Switch:	<strong>-selectborderwidth</strong></a></strong>

<dd>
<p>Specifies a non-negative value indicating the width
of the 3-D border to draw around selected items.
The value may have any of the forms acceptable to <strong>Tk_GetPixels</strong>.</p>
</dd>
</li>
<dt><strong><a name="item_name_3a_selectforeground">Name:	<strong>selectForeground</strong></a></strong>

<dt><strong>Class:	<strong>Background</strong></strong>

<dt><strong><a name="item_switch_3a__2dselectforeground">Switch:	<strong>-selectforeground</strong></a></strong>

<dd>
<p>Specifies the foreground color to use when displaying selected
items.</p>
</dd>
</li>
<dt><strong><a name="item_name_3a_setgrid">Name:	<strong>setGrid</strong></a></strong>

<dt><strong><a name="item_class_3a_setgrid">Class:	<strong>SetGrid</strong></a></strong>

<dt><strong><a name="item_switch_3a__2dsetgrid">Switch:	<strong>-setgrid</strong></a></strong>

<dd>
<p>Specifies a boolean value that determines whether this widget controls the
resizing grid for its top-level window.
This option is typically used in text widgets, where the information
in the widget has a natural size (the size of a character) and it makes
sense for the window's dimensions to be integral numbers of these units.
These natural window sizes form a grid.
If the <strong>setGrid</strong> option is set to true then the widget will
communicate with the window manager so that when the user interactively
resizes the top-level window that contains the widget, the dimensions of
the window will be displayed to the user in grid units and the window
size will be constrained to integral numbers of grid units.
See <a href="../../lib/Tk/Wm.html#gridded_geometry_management">GRIDDED GEOMETRY MANAGEMENT in the Tk::Wm manpage</a>
for more details.</p>
</dd>
</li>
<dt><strong><a name="item_name_3a_takefocus">Name:	<strong>takeFocus</strong></a></strong>

<dt><strong><a name="item_class_3a_takefocus">Class:	<strong>TakeFocus</strong></a></strong>

<dt><strong><a name="item_switch_3a__2dtakefocus">Switch:	<strong>-takefocus</strong></a></strong>

<dd>
<p>Determines whether the window accepts the focus during keyboard
traversal (e.g., Tab and Shift-Tab).
Before setting the focus to a window, the traversal scripts
consult the value of the <strong>takeFocus</strong> option.
A value of <strong>0</strong> means that the window should be skipped entirely
during keyboard traversal.
<strong>1</strong> means that the window should receive the input
focus as long as it is viewable (it and all of its ancestors are mapped).
An empty value for the option means that the traversal scripts make
the decision about whether or not to focus on the window:  the current
algorithm is to skip the window if it is
disabled, if it has no key bindings, or if it is not viewable.
If the value has any other form, then the traversal scripts take
the value, append the name of the window to it (with a separator space),
and evaluate the resulting string as a Callback.
The script must return <strong>0</strong>, <strong>1</strong>, or an empty string:  a
<strong>0</strong> or <strong>1</strong> value specifies whether the window will receive
the input focus, and an empty string results in the default decision
described above.
Note: this interpretation of the option is defined entirely by
the Callbacks that implement traversal:  the widget implementations
ignore the option entirely, so you can change its meaning if you
redefine the keyboard traversal scripts.</p>
</dd>
</li>
<dt><strong><a name="item_name_3a_text">Name:	<strong>text</strong></a></strong>

<dt><strong><a name="item_class_3a_text">Class:	<strong>Text</strong></a></strong>

<dt><strong><a name="item_switch_3a__2dtext">Switch:	<strong>-text</strong></a></strong>

<dd>
<p>Specifies a string to be displayed inside the widget.  The way in which
the string is displayed depends on the particular widget and may be
determined by other options, such as <strong>anchor</strong> or <strong>justify</strong>.</p>
</dd>
</li>
<dt><strong><a name="item_name_3a_textvariable">Name:	<strong>textVariable</strong></a></strong>

<dt><strong><a name="item_class_3a_variable">Class:	<strong>Variable</strong></a></strong>

<dt><strong><a name="item_switch_3a__2dtextvariable">Switch:	<strong>-textvariable</strong></a></strong>

<dd>
<p>Specifies the name of a variable.  The value of the variable is a text
string to be displayed inside the widget;  if the variable value changes
then the widget will automatically update itself to reflect the new value.
The way in which the string is displayed in the widget depends on the
particular widget and may be determined by other options, such as
<strong>anchor</strong> or <strong>justify</strong>.</p>
</dd>
</li>
<dt><strong><a name="item_name_3a_tile">Name:	<strong>tile</strong></a></strong>

<dt><strong>Class:	<strong>Tile</strong></strong>

<dt><strong><a name="item_switch_3a__2dtile">Switch:	<strong>-tile</strong></a></strong>

<dd>
<p>Specifies image used to display the widget. If image is the empty
string, then the normal background color is displayed.</p>
</dd>
</li>
<dt><strong><a name="item_name_3a_troughcolor">Name:	<strong>troughColor</strong></a></strong>

<dt><strong>Class:	<strong>Background</strong></strong>

<dt><strong><a name="item_switch_3a__2dtroughcolor">Switch:	<strong>-troughcolor</strong></a></strong>

<dd>
<p>Specifies the color to use for the rectangular trough areas
in widgets such as scrollbars and scales.</p>
</dd>
</li>
<dt><strong><a name="item_name_3a_troughtile">Name:	<strong>troughTile</strong></a></strong>

<dt><strong>Class:	<strong>Tile</strong></strong>

<dt><strong><a name="item_switch_3a__2dtroughtile">Switch:	<strong>-troughtile</strong></a></strong>

<dd>
<p>Specifies image used to display in the rectangular trough areas
in widgets such as scrollbars and scales.</p>
</dd>
</li>
<dt><strong><a name="item_name_3a_underline">Name:	<strong>underline</strong></a></strong>

<dt><strong><a name="item_class_3a_underline">Class:	<strong>Underline</strong></a></strong>

<dt><strong><a name="item_switch_3a__2dunderline">Switch:	<strong>-underline</strong></a></strong>

<dd>
<p>Specifies the integer index of a character to underline in the widget.
This option is used by the default bindings to implement keyboard
traversal for menu buttons and menu entries.
0 corresponds to the first character of the text displayed in the
widget, 1 to the next character, and so on.</p>
</dd>
</li>
<dt><strong><a name="item_name_3a_wraplength">Name:	<strong>wrapLength</strong></a></strong>

<dt><strong><a name="item_class_3a_wraplength">Class:	<strong>WrapLength</strong></a></strong>

<dt><strong><a name="item_switch_3a__2dwraplength">Switch:	<strong>-wraplength</strong></a></strong>

<dd>
<p>For widgets that can perform word-wrapping, this option specifies
the maximum line length.
Lines that would exceed this length are wrapped onto the next line,
so that no line is longer than the specified length.
The value may be specified in any of the standard forms for
screen distances.
If this value is less than or equal to 0 then no wrapping is done:  lines
will break only at newline characters in the text.</p>
</dd>
</li>
<dt><strong><a name="item_name_3a_xscrollcommand">Name:	<strong>xScrollCommand</strong></a></strong>

<dt><strong><a name="item_class_3a_scrollcommand">Class:	<strong>ScrollCommand</strong></a></strong>

<dt><strong><a name="item_switch_3a__2dxscrollcommand">Switch:	<strong>-xscrollcommand</strong></a></strong>

<dd>
<p>Specifies a callback used to communicate with horizontal
scrollbars.
When the view in the widget's window changes (or
whenever anything else occurs that could change the display in a
scrollbar, such as a change in the total size of the widget's
contents), the widget will
make a callback passing two numeric arguments in addition to
any specified in the callback.
Each of the numbers is a fraction between 0 and 1, which indicates
a position in the document.  0 indicates the beginning of the document,
1 indicates the end, .333 indicates a position one third the way through
the document, and so on.
The first fraction indicates the first information in the document
that is visible in the window, and the second fraction indicates
the information just after the last portion that is visible.
Typically the
<strong>xScrollCommand</strong> option consists of the scrollbar widget object
and the method ``set'' i.e. [<strong>set</strong> =&gt; <em>$sb</em>]:
this will cause the scrollbar to be updated whenever the view in the window changes.
If this option is not specified, then no command will be executed.</p>
</dd>
</li>
<dt><strong><a name="item_name_3a_yscrollcommand">Name:	<strong>yScrollCommand</strong></a></strong>

<dt><strong>Class:	<strong>ScrollCommand</strong></strong>

<dt><strong><a name="item_switch_3a__2dyscrollcommand">Switch:	<strong>-yscrollcommand</strong></a></strong>

<dd>
<p>Specifies a calback used to communicate with vertical
scrollbars.  This option is treated in the same way as the
<strong>xScrollCommand</strong> option, except that it is used for vertical
scrollbars and is provided by widgets that support vertical scrolling.
See the description of <strong>xScrollCommand</strong> for details
on how this option is used.</p>
</dd>
</li>
</dl>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p><a href="../../lib/Tk/option.html">the Tk::option manpage</a>
<a href="../../lib/Tk/callbacks.html">the Tk::callbacks manpage</a>
<a href="../../lib/Tk/ConfigSpecs.html">the Tk::ConfigSpecs manpage</a>
<a href="../../Tk/pTk/GetPixels.html">Tk_GetPixels</a></p>
<p>
</p>
<hr />
<h1><a name="keywords">KEYWORDS</a></h1>
<p>class, name, standard option, switch</p>

</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -