home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 May / Chip_2000-05_cd1.bin / zkuste / Perl / ActivePerl-5.6.0.613.msi / 䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥 / _9119141f130d3977bee4b4a051a8c48a < prev    next >
Text File  |  2000-03-23  |  8KB  |  180 lines

  1.  
  2. <HTML>
  3. <HEAD>
  4. <TITLE>Tk::Frame - Create and manipulate Frame widgets</TITLE>
  5. <LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
  6. <LINK REV="made" HREF="mailto:">
  7. </HEAD>
  8.  
  9. <BODY>
  10. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  11. <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
  12. <STRONG><P CLASS=block> Tk::Frame - Create and manipulate Frame widgets</P></STRONG>
  13. </TD></TR>
  14. </TABLE>
  15.  
  16. <A NAME="__index__"></A>
  17. <!-- INDEX BEGIN -->
  18.  
  19. <UL>
  20.  
  21.     <LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
  22.  
  23.     <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
  24.     <LI><A HREF="#standard options">STANDARD OPTIONS</A></LI>
  25.     <LI><A HREF="#widgetspecific options">WIDGET-SPECIFIC OPTIONS</A></LI>
  26.     <LI><A HREF="#description">DESCRIPTION</A></LI>
  27.     <LI><A HREF="#widget methods">WIDGET METHODS</A></LI>
  28.     <LI><A HREF="#bindings">BINDINGS</A></LI>
  29.     <LI><A HREF="#keywords">KEYWORDS</A></LI>
  30. </UL>
  31. <!-- INDEX END -->
  32.  
  33. <HR>
  34. <P>
  35. <H1><A NAME="name">NAME</A></H1>
  36. <P>Tk::Frame - Create and manipulate Frame widgets</P>
  37. <P>
  38. <HR>
  39. <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
  40. <UL>
  41. <LI>Linux</LI>
  42. <LI>Solaris</LI>
  43. <LI>Windows</LI>
  44. </UL>
  45. <HR>
  46. <H1><A NAME="synopsis">SYNOPSIS</A></H1>
  47. <P>    <EM>$frame</EM> = <EM>$parent</EM>-><STRONG>Frame</STRONG>(?<EM>options</EM>?);</P>
  48. <P>
  49. <HR>
  50. <H1><A NAME="standard options">STANDARD OPTIONS</A></H1>
  51. <P><TABLE CELLSPACING=0 CELLPADDING=0><TR><TD><STRONG>-borderwidth</STRONG><TD><STRONG>-highlightbackground</STRONG><TD><STRONG>-highlightthickness</STRONG><TD><STRONG>-takefocus</STRONG>
  52. <TR><TD><STRONG>-class</STRONG><TD><STRONG>-highlightcolor</STRONG><TD><STRONG>-relief</STRONG>
  53. <TR><TD><STRONG>-cursor</STRONG></TABLE></P>
  54. <P>See <A HREF="../../../site/lib/Tk/options.html">the Tk::options manpage</A> for details of the standard options.</P>
  55. <P>
  56. <HR>
  57. <H1><A NAME="widgetspecific options">WIDGET-SPECIFIC OPTIONS</A></H1>
  58. <DL>
  59. <DT><STRONG><A NAME="item_Name%3A_background">Name:    <STRONG>background</STRONG></A></STRONG><BR>
  60. <DD>
  61. <DT><STRONG><A NAME="item_Class%3A_Background">Class:    <STRONG>Background</STRONG></A></STRONG><BR>
  62. <DD>
  63. <DT><STRONG><A NAME="item_Switch%3A_%2Dbackground">Switch:    <STRONG>-background</STRONG></A></STRONG><BR>
  64. <DD>
  65. This option is the same as the standard <STRONG>background</STRONG> option
  66. except that its value may also be specified as an undefined value.
  67. In this case, the widget will display no background or border, and
  68. no colors will be consumed from its colormap for its background
  69. and border.
  70. <P></P>
  71. <DT><STRONG><A NAME="item_Name%3A_colormap">Name:    <STRONG>colormap</STRONG></A></STRONG><BR>
  72. <DD>
  73. <DT><STRONG><A NAME="item_Class%3A_Colormap">Class:    <STRONG>Colormap</STRONG></A></STRONG><BR>
  74. <DD>
  75. <DT><STRONG><A NAME="item_Switch%3A_%2Dcolormap">Switch:    <STRONG>-colormap</STRONG></A></STRONG><BR>
  76. <DD>
  77. Specifies a colormap to use for the window.
  78. The value may be either <STRONG>new</STRONG>, in which case a new colormap is
  79. created for the window and its children, or the name of another
  80. window (which must be on the same screen and have the same visual
  81. as $widget), in which case the new window will use the colormap
  82. from the specified window.
  83. If the <STRONG>colormap</STRONG> option is not specified, the new window
  84. uses the same colormap as its parent.
  85. This option may not be changed with the <STRONG>configure</STRONG>
  86. method.
  87. <P></P>
  88. <DT><STRONG><A NAME="item_Name%3A_container">Name:    <STRONG>container</STRONG></A></STRONG><BR>
  89. <DD>
  90. <DT><STRONG><A NAME="item_Class%3A_Container">Class:    <STRONG>Container</STRONG></A></STRONG><BR>
  91. <DD>
  92. <DT><STRONG><A NAME="item_Switch%3A_%2Dcontainer">Switch:    <STRONG>-container</STRONG></A></STRONG><BR>
  93. <DD>
  94. The value must be a boolean.  If true, it means that this window will
  95. be used as a container in which some other application will be embedded
  96. (for example, a Tk toplevel can be embedded using the <STRONG>-use</STRONG> option).
  97. The window will support the appropriate window manager protocols for
  98. things like geometry requests.  The window should not have any
  99. children of its own in this application.
  100. This option may not be changed with the <STRONG>configure</STRONG>
  101. method.
  102. <P></P>
  103. <DT><STRONG><A NAME="item_Name%3A_height">Name:    <STRONG>height</STRONG></A></STRONG><BR>
  104. <DD>
  105. <DT><STRONG><A NAME="item_Class%3A_Height">Class:    <STRONG>Height</STRONG></A></STRONG><BR>
  106. <DD>
  107. <DT><STRONG><A NAME="item_Switch%3A_%2Dheight">Switch:    <STRONG>-height</STRONG></A></STRONG><BR>
  108. <DD>
  109. Specifies the desired height for the window in any of the forms
  110. acceptable to <STRONG>Tk_GetPixels</STRONG>.
  111. If this option is less than or equal to zero then the window will
  112. not request any size at all.
  113. <P></P>
  114. <DT><STRONG><A NAME="item_Name%3A_visual">Name:    <STRONG>visual</STRONG></A></STRONG><BR>
  115. <DD>
  116. <DT><STRONG><A NAME="item_Class%3A_Visual">Class:    <STRONG>Visual</STRONG></A></STRONG><BR>
  117. <DD>
  118. <DT><STRONG><A NAME="item_Switch%3A_%2Dvisual">Switch:    <STRONG>-visual</STRONG></A></STRONG><BR>
  119. <DD>
  120. Specifies visual information for the new window in any of the
  121. forms accepted by <STRONG>Tk_GetVisual</STRONG>.
  122. If this option is not specified, the new window will use the same
  123. visual as its parent.
  124. The <STRONG>visual</STRONG> option may not be modified with the <STRONG>configure</STRONG>
  125. method.
  126. <P></P>
  127. <DT><STRONG><A NAME="item_Name%3A_width">Name:    <STRONG>width</STRONG></A></STRONG><BR>
  128. <DD>
  129. <DT><STRONG><A NAME="item_Class%3A_Width">Class:    <STRONG>Width</STRONG></A></STRONG><BR>
  130. <DD>
  131. <DT><STRONG><A NAME="item_Switch%3A_%2Dwidth">Switch:    <STRONG>-width</STRONG></A></STRONG><BR>
  132. <DD>
  133. Specifies the desired width for the window in any of the forms
  134. acceptable to <STRONG>Tk_GetPixels</STRONG>.
  135. If this option is less than or equal to zero then the window will
  136. not request any size at all.
  137. <P></P></DL>
  138. <P>
  139. <HR>
  140. <H1><A NAME="description">DESCRIPTION</A></H1>
  141. <P>The <STRONG>Frame</STRONG> method creates a new window (given by the
  142. $widget argument) and makes it into a frame widget.
  143. Additional
  144. options, described above, may be specified on the command line
  145. or in the option database
  146. to configure aspects of the frame such as its background color
  147. and relief.  The <STRONG>frame</STRONG> command returns the
  148. path name of the new window.</P>
  149. <P>A frame is a simple widget.  Its primary purpose is to act as a
  150. spacer or container for complex window layouts.  The only features
  151. of a frame are its background color and an optional 3-D border to make the
  152. frame appear raised or sunken.</P>
  153. <P>
  154. <HR>
  155. <H1><A NAME="widget methods">WIDGET METHODS</A></H1>
  156. <P>The <STRONG>Frame</STRONG> method creates a widget object.
  157. This object supports the <STRONG>configure</STRONG> and <STRONG>cget</STRONG> methods
  158. described in <A HREF="../../../site/lib/Tk/options.html">the Tk::options manpage</A> which can be used to enquire and
  159. modify the options described above.
  160. The widget also inherits all the methods provided by the generic
  161. <A HREF="../../../site/lib/Tk/Widget.html">Tk::Widget</A> class.</P>
  162. <P>
  163. <HR>
  164. <H1><A NAME="bindings">BINDINGS</A></H1>
  165. <P>When a new frame is created, it has no default event bindings:
  166. frames are not intended to be interactive.</P>
  167. <P>
  168. <HR>
  169. <H1><A NAME="keywords">KEYWORDS</A></H1>
  170. <P>frame, widget</P>
  171. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  172. <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
  173. <STRONG><P CLASS=block> Tk::Frame - Create and manipulate Frame widgets</P></STRONG>
  174. </TD></TR>
  175. </TABLE>
  176.  
  177. </BODY>
  178.  
  179. </HTML>
  180.