Initial release
This commit is contained in:
176
hlp/en/tk/frame.htm
Normal file
176
hlp/en/tk/frame.htm
Normal file
@@ -0,0 +1,176 @@
|
||||
<HTML><HEAD><TITLE>Tk Built-In Commands - frame manual page</TITLE></HEAD><BODY>
|
||||
<DL>
|
||||
<DD><A HREF="frame.htm#M2" NAME="L517">NAME</A>
|
||||
<DL><DD>frame - Create and manipulate frame widgets</DL>
|
||||
<DD><A HREF="frame.htm#M3" NAME="L518">SYNOPSIS</A>
|
||||
<DL>
|
||||
<DD><B>frame</B> <I>pathName</I> ?<I>options</I>?
|
||||
</DL>
|
||||
<DD><A HREF="frame.htm#M4" NAME="L519">STANDARD OPTIONS</A>
|
||||
<DL>
|
||||
<DD><A HREF="options.htm#M-borderwidth">-borderwidth or -bd, borderWidth, BorderWidth</A>
|
||||
<DD><A HREF="options.htm#M-cursor">-cursor, cursor, Cursor</A>
|
||||
<DD><A HREF="options.htm#M-highlightbackground">-highlightbackground, highlightBackground, HighlightBackground</A>
|
||||
<DD><A HREF="options.htm#M-highlightcolor">-highlightcolor, highlightColor, HighlightColor</A>
|
||||
<DD><A HREF="options.htm#M-highlightthickness">-highlightthickness, highlightThickness, HighlightThickness</A>
|
||||
<DD><A HREF="options.htm#M-relief">-relief, relief, Relief</A>
|
||||
<DD><A HREF="options.htm#M-takefocus">-takefocus, takeFocus, TakeFocus</A>
|
||||
</DL>
|
||||
<DD><A HREF="frame.htm#M5" NAME="L520">WIDGET-SPECIFIC OPTIONS</A>
|
||||
<DL>
|
||||
<DD><A HREF="frame.htm#M6" NAME="L521">-background, background, Background</A>
|
||||
<DD><A HREF="frame.htm#M7" NAME="L522">-class, class, Class</A>
|
||||
<DD><A HREF="frame.htm#M8" NAME="L523">-colormap, colormap, Colormap</A>
|
||||
<DD><A HREF="frame.htm#M9" NAME="L524">-container, container, Container</A>
|
||||
<DD><A HREF="frame.htm#M10" NAME="L525">-height, height, Height</A>
|
||||
<DD><A HREF="frame.htm#M11" NAME="L526">-visual, visual, Visual</A>
|
||||
<DD><A HREF="frame.htm#M12" NAME="L527">-width, width, Width</A>
|
||||
</DL>
|
||||
<DD><A HREF="frame.htm#M13" NAME="L528">DESCRIPTION</A>
|
||||
<DD><A HREF="frame.htm#M14" NAME="L529">WIDGET COMMAND</A>
|
||||
<DL>
|
||||
<DD><A HREF="frame.htm#M15" NAME="L530"><I>pathName </I><B>cget</B> <I>option</I></A>
|
||||
<DD><A HREF="frame.htm#M16" NAME="L531"><I>pathName </I><B>configure</B> ?<I>option</I>? <I>?value option value ...</I>?</A>
|
||||
</DL>
|
||||
<DD><A HREF="frame.htm#M17" NAME="L532">BINDINGS</A>
|
||||
<DD><A HREF="frame.htm#M18" NAME="L533">KEYWORDS</A>
|
||||
</DL><HR>
|
||||
<H3><A NAME="M2">NAME</A></H3>
|
||||
frame - Create and manipulate frame widgets
|
||||
<H3><A NAME="M3">SYNOPSIS</A></H3>
|
||||
<B>frame</B> <I>pathName</I> ?<I>options</I>?<BR>
|
||||
<H3><A NAME="M4">STANDARD OPTIONS</A></H3>
|
||||
<DL>
|
||||
<DT><B><A HREF="options.htm#M-borderwidth">-borderwidth or -bd, borderWidth, BorderWidth</A></B>
|
||||
<DT><B><A HREF="options.htm#M-cursor">-cursor, cursor, Cursor</A></B>
|
||||
<DT><B><A HREF="options.htm#M-highlightbackground">-highlightbackground, highlightBackground, HighlightBackground</A></B>
|
||||
<DT><B><A HREF="options.htm#M-highlightcolor">-highlightcolor, highlightColor, HighlightColor</A></B>
|
||||
<DT><B><A HREF="options.htm#M-highlightthickness">-highlightthickness, highlightThickness, HighlightThickness</A></B>
|
||||
<DT><B><A HREF="options.htm#M-relief">-relief, relief, Relief</A></B>
|
||||
<DT><B><A HREF="options.htm#M-takefocus">-takefocus, takeFocus, TakeFocus</A></B>
|
||||
</DL>
|
||||
<H3><A NAME="M5">WIDGET-SPECIFIC OPTIONS</A></H3>
|
||||
<DL>
|
||||
<DT>Command-Line Name: <B><A NAME="M6">-background</A></B>
|
||||
<DT>Database Name: <B>background</B>
|
||||
<DT>Database Class: <B>Background</B>
|
||||
<DD>This option is the same as the standard <B>background</B> option
|
||||
except that its value may also be specified as an empty string.
|
||||
In this case, the widget will display no background or border, and
|
||||
no colors will be consumed from its colormap for its background
|
||||
and border.
|
||||
<P><DT>Command-Line Name: <B><A NAME="M7">-class</A></B>
|
||||
<DT>Database Name: <B>class</B>
|
||||
<DT>Database Class: <B>Class</B>
|
||||
<DD>Specifies a class for the window.
|
||||
This class will be used when querying the option database for
|
||||
the window's other options, and it will also be used later for
|
||||
other purposes such as bindings.
|
||||
The <B>class</B> option may not be changed with the <B>configure</B>
|
||||
widget command.
|
||||
<P><DT>Command-Line Name: <B><A NAME="M8">-colormap</A></B>
|
||||
<DT>Database Name: <B>colormap</B>
|
||||
<DT>Database Class: <B>Colormap</B>
|
||||
<DD>Specifies a colormap to use for the window.
|
||||
The value may be either <B>new</B>, in which case a new colormap is
|
||||
created for the window and its children, or the name of another
|
||||
window (which must be on the same screen and have the same visual
|
||||
as <I>pathName</I>), in which case the new window will use the colormap
|
||||
from the specified window.
|
||||
If the <B>colormap</B> option is not specified, the new window
|
||||
uses the same colormap as its parent.
|
||||
This option may not be changed with the <B>configure</B>
|
||||
widget command.
|
||||
<P><DT>Command-Line Name: <B><A NAME="M9">-container</A></B>
|
||||
<DT>Database Name: <B>container</B>
|
||||
<DT>Database Class: <B>Container</B>
|
||||
<DD>The value must be a boolean. If true, it means that this window will
|
||||
be used as a container in which some other application will be embedded
|
||||
(for example, a Tk toplevel can be embedded using the <B>-use</B> option).
|
||||
The window will support the appropriate window manager protocols for
|
||||
things like geometry requests. The window should not have any
|
||||
children of its own in this application.
|
||||
This option may not be changed with the <B>configure</B>
|
||||
widget command.
|
||||
<P><DT>Command-Line Name: <B><A NAME="M10">-height</A></B>
|
||||
<DT>Database Name: <B>height</B>
|
||||
<DT>Database Class: <B>Height</B>
|
||||
<DD>Specifies the desired height for the window in any of the forms
|
||||
acceptable to <B><A HREF="../TclLib/GetPixels.htm">Tk_GetPixels</A></B>.
|
||||
If this option is less than or equal to zero then the window will
|
||||
not request any size at all.
|
||||
<P><DT>Command-Line Name: <B><A NAME="M11">-visual</A></B>
|
||||
<DT>Database Name: <B>visual</B>
|
||||
<DT>Database Class: <B>Visual</B>
|
||||
<DD>Specifies visual information for the new window in any of the
|
||||
forms accepted by <B><A HREF="../TclLib/GetVisual.htm">Tk_GetVisual</A></B>.
|
||||
If this option is not specified, the new window will use the same
|
||||
visual as its parent.
|
||||
The <B>visual</B> option may not be modified with the <B>configure</B>
|
||||
widget command.
|
||||
<P><DT>Command-Line Name: <B><A NAME="M12">-width</A></B>
|
||||
<DT>Database Name: <B>width</B>
|
||||
<DT>Database Class: <B>Width</B>
|
||||
<DD>Specifies the desired width for the window in any of the forms
|
||||
acceptable to <B><A HREF="../TclLib/GetPixels.htm">Tk_GetPixels</A></B>.
|
||||
If this option is less than or equal to zero then the window will
|
||||
not request any size at all.
|
||||
</DL>
|
||||
<H3><A NAME="M13">DESCRIPTION</A></H3>
|
||||
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>
|
||||
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.
|
||||
|
||||
<H3><A NAME="M14">WIDGET COMMAND</A></H3>
|
||||
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:
|
||||
<PRE><I>pathName option </I>?<I>arg arg ...</I>?</PRE>
|
||||
<I>PathName</I> is the name of the command, which is the same as
|
||||
the frame widget's path name. <I>Option</I> and the <I>arg</I>s
|
||||
determine the exact behavior of the command. The following
|
||||
commands are possible for frame widgets:
|
||||
<P>
|
||||
<DL>
|
||||
<P><DT><A NAME="M15"><I>pathName </I><B>cget</B> <I>option</I></A><DD>
|
||||
Returns the current value of the configuration option given
|
||||
by <I>option</I>.
|
||||
<I>Option</I> may have any of the values accepted by the <B>frame</B>
|
||||
command.
|
||||
<P><DT><A NAME="M16"><I>pathName </I><B>configure</B> ?<I>option</I>? <I>?value option value ...</I>?</A><DD>
|
||||
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> (see <B><A HREF="../TclLib/ConfigWidg.htm">Tk_ConfigureInfo</A></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> may have any of the values accepted by the <B>frame</B>
|
||||
command.
|
||||
|
||||
<P></DL>
|
||||
<H3><A NAME="M17">BINDINGS</A></H3>
|
||||
When a new frame is created, it has no default event bindings:
|
||||
frames are not intended to be interactive.
|
||||
|
||||
<H3><A NAME="M18">KEYWORDS</A></H3>
|
||||
<A href="../Keywords/F.htm#frame">frame</A>, <A href="../Keywords/W.htm#widget">widget</A>
|
||||
<HR><PRE>
|
||||
<A HREF="../copyright.htm">Copyright</A> © 1990-1994 The Regents of the University of California.
|
||||
<A HREF="../copyright.htm">Copyright</A> © 1994-1996 Sun Microsystems, Inc.
|
||||
<A HREF="../copyright.htm">Copyright</A> © 1995-1997 Roger E. Critchlow Jr.</PRE>
|
||||
</BODY></HTML>
|
Reference in New Issue
Block a user