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

  1.  
  2. <HTML>
  3. <HEAD>
  4. <TITLE>Tk::Toplevel - Create and manipulate Toplevel 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::Toplevel - Create and manipulate Toplevel 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="#see also">SEE ALSO</A></LI>
  30.     <LI><A HREF="#keywords">KEYWORDS</A></LI>
  31. </UL>
  32. <!-- INDEX END -->
  33.  
  34. <HR>
  35. <P>
  36. <H1><A NAME="name">NAME</A></H1>
  37. <P>Tk::Toplevel - Create and manipulate Toplevel widgets</P>
  38. <P>
  39. <HR>
  40. <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
  41. <UL>
  42. <LI>Linux</LI>
  43. <LI>Solaris</LI>
  44. <LI>Windows</LI>
  45. </UL>
  46. <HR>
  47. <H1><A NAME="synopsis">SYNOPSIS</A></H1>
  48. <P>    <EM>$toplevel</EM> = <EM>$parent</EM>-><STRONG>Toplevel</STRONG>(?<EM>options</EM>?);</P>
  49. <P>
  50. <HR>
  51. <H1><A NAME="standard options">STANDARD OPTIONS</A></H1>
  52. <P><TABLE CELLSPACING=0 CELLPADDING=0><TR><TD><STRONG>-borderwidth</STRONG><TD><STRONG>-highlightbackground</STRONG><TD><STRONG>-highlightthickness</STRONG><TD><STRONG>-takefocus</STRONG>
  53. <TR><TD><STRONG>-class</STRONG><TD><STRONG>-highlightcolor</STRONG><TD><STRONG>-relief</STRONG>
  54. <TR><TD><STRONG>-cursor</STRONG></TABLE></P>
  55. <P>See <A HREF="../../../site/lib/Tk/options.html">the Tk::options manpage</A> for details of the standard options.</P>
  56. <P>
  57. <HR>
  58. <H1><A NAME="widgetspecific options">WIDGET-SPECIFIC OPTIONS</A></H1>
  59. <DL>
  60. <DT><STRONG><A NAME="item_Name%3A_background">Name:    <STRONG>background</STRONG></A></STRONG><BR>
  61. <DD>
  62. <DT><STRONG><A NAME="item_Class%3A_Background">Class:    <STRONG>Background</STRONG></A></STRONG><BR>
  63. <DD>
  64. <DT><STRONG><A NAME="item_Switch%3A_%2Dbackground">Switch:    <STRONG>-background</STRONG></A></STRONG><BR>
  65. <DD>
  66. This option is the same as the standard <STRONG>background</STRONG> option
  67. except that its value may also be specified as an undefined value.
  68. In this case, the widget will display no background or border, and
  69. no colors will be consumed from its colormap for its background
  70. and border.
  71. <P></P>
  72. <DT><STRONG><A NAME="item_Name%3A_colormap">Name:    <STRONG>colormap</STRONG></A></STRONG><BR>
  73. <DD>
  74. <DT><STRONG><A NAME="item_Class%3A_Colormap">Class:    <STRONG>Colormap</STRONG></A></STRONG><BR>
  75. <DD>
  76. <DT><STRONG><A NAME="item_Switch%3A_%2Dcolormap">Switch:    <STRONG>-colormap</STRONG></A></STRONG><BR>
  77. <DD>
  78. Specifies a colormap to use for the window.
  79. The value may be either <STRONG>new</STRONG>, in which case a new colormap is
  80. created for the window and its children, or the name of another
  81. window (which must be on the same screen and have the same visual
  82. as $widget), in which case the new window will use the colormap
  83. from the specified window.
  84. If the <STRONG>colormap</STRONG> option is not specified, the new window
  85. uses the default colormap of its screen.
  86. This option may not be changed with the <STRONG>configure</STRONG>
  87. method.
  88. <P></P>
  89. <DT><STRONG><A NAME="item_Name%3A_container">Name:    <STRONG>container</STRONG></A></STRONG><BR>
  90. <DD>
  91. <DT><STRONG><A NAME="item_Class%3A_Container">Class:    <STRONG>Container</STRONG></A></STRONG><BR>
  92. <DD>
  93. <DT><STRONG><A NAME="item_Switch%3A_%2Dcontainer">Switch:    <STRONG>-container</STRONG></A></STRONG><BR>
  94. <DD>
  95. The value must be a boolean.  If true, it means that this window will
  96. be used as a container in which some other application will be embedded
  97. (for example, a Tk toplevel can be embedded using the <STRONG>-use</STRONG> option).
  98. The window will support the appropriate window manager protocols for
  99. things like geometry requests.  The window should not have any
  100. children of its own in this application.
  101. This option may not be changed with the <STRONG>configure</STRONG>
  102. method.
  103. <P></P>
  104. <DT><STRONG><A NAME="item_Name%3A_height">Name:    <STRONG>height</STRONG></A></STRONG><BR>
  105. <DD>
  106. <DT><STRONG><A NAME="item_Class%3A_Height">Class:    <STRONG>Height</STRONG></A></STRONG><BR>
  107. <DD>
  108. <DT><STRONG><A NAME="item_Switch%3A_%2Dheight">Switch:    <STRONG>-height</STRONG></A></STRONG><BR>
  109. <DD>
  110. Specifies the desired height for the window in any of the forms
  111. acceptable to <STRONG>Tk_GetPixels</STRONG>.
  112. If this option is less than or equal to zero then the window will
  113. not request any size at all.
  114. <P></P>
  115. <DT><STRONG><A NAME="item_Name%3A_menu">Name:    <STRONG>menu</STRONG></A></STRONG><BR>
  116. <DD>
  117. <DT><STRONG><A NAME="item_Class%3A_Menu">Class:    <STRONG>Menu</STRONG></A></STRONG><BR>
  118. <DD>
  119. <DT><STRONG><A NAME="item_Switch%3A_%2Dmenu">Switch:    <STRONG>-menu</STRONG></A></STRONG><BR>
  120. <DD>
  121. Specifies a menu widget to be used as a menubar. On the Macintosh, the
  122. menubar will be displayed accross the top of the main monitor. On
  123. Microsoft Windows and all UNIX platforms, the menu will appear accross
  124. the toplevel window as part of the window dressing maintained by the
  125. window manager.
  126. <P></P>
  127. <DT><STRONG><A NAME="item_Name%3A_%22%22">Name:    <STRONG>``''</STRONG></A></STRONG><BR>
  128. <DD>
  129. <DT><STRONG><A NAME="item_Class%3A_%22%22">Class:    <STRONG>``''</STRONG></A></STRONG><BR>
  130. <DD>
  131. <DT><STRONG><A NAME="item_Switch%3A_%2Dscreen">Switch:    <STRONG>-screen</STRONG></A></STRONG><BR>
  132. <DD>
  133. Specifies the screen on which to place the new window.
  134. Any valid screen name may be used, even one associated with a
  135. different display.
  136. Defaults to the same screen as its parent.
  137. This option is special in that it may not be specified via the option
  138. database, and it may not be modified with the <STRONG>configure</STRONG>
  139. method.
  140. <P></P>
  141. <DT><STRONG><A NAME="item_Name%3A_use">Name:    <STRONG>use</STRONG></A></STRONG><BR>
  142. <DD>
  143. <DT><STRONG><A NAME="item_Class%3A_Use">Class:    <STRONG>Use</STRONG></A></STRONG><BR>
  144. <DD>
  145. <DT><STRONG><A NAME="item_Switch%3A_%2Duse">Switch:    <STRONG>-use</STRONG></A></STRONG><BR>
  146. <DD>
  147. This option is used for embedding. If the value isn't an empty string,
  148. it must be the the window identifier of a container window, specified as
  149. a hexadecimal string like the ones returned by the <STRONG>winfo id</STRONG>
  150. command. The toplevel widget will be created as a child of the given
  151. container instead of the root window for the screen.  If the container
  152. window is in a Tk application, it must be a frame or toplevel widget for
  153. which the <STRONG>-container</STRONG> option was specified.
  154. This option may not be changed with the <STRONG>configure</STRONG>
  155. method.
  156. <P></P>
  157. <DT><STRONG><A NAME="item_Name%3A_visual">Name:    <STRONG>visual</STRONG></A></STRONG><BR>
  158. <DD>
  159. <DT><STRONG><A NAME="item_Class%3A_Visual">Class:    <STRONG>Visual</STRONG></A></STRONG><BR>
  160. <DD>
  161. <DT><STRONG><A NAME="item_Switch%3A_%2Dvisual">Switch:    <STRONG>-visual</STRONG></A></STRONG><BR>
  162. <DD>
  163. Specifies visual information for the new window in any of the
  164. forms accepted by <STRONG>Tk_GetVisual</STRONG>.
  165. If this option is not specified, the new window will use the default
  166. visual for its screen.
  167. The <STRONG>visual</STRONG> option may not be modified with the <STRONG>configure</STRONG>
  168. method.
  169. <P></P>
  170. <DT><STRONG><A NAME="item_Name%3A_width">Name:    <STRONG>width</STRONG></A></STRONG><BR>
  171. <DD>
  172. <DT><STRONG><A NAME="item_Class%3A_Width">Class:    <STRONG>Width</STRONG></A></STRONG><BR>
  173. <DD>
  174. <DT><STRONG><A NAME="item_Switch%3A_%2Dwidth">Switch:    <STRONG>-width</STRONG></A></STRONG><BR>
  175. <DD>
  176. Specifies the desired width for the window in any of the forms
  177. acceptable to <STRONG>Tk_GetPixels</STRONG>.
  178. If this option is less than or equal to zero then the window will
  179. not request any size at all.
  180. <P></P></DL>
  181. <P>
  182. <HR>
  183. <H1><A NAME="description">DESCRIPTION</A></H1>
  184. <P>The <STRONG>Toplevel</STRONG> method creates a new toplevel widget (given
  185. by the $widget argument).  Additional
  186. options, described above, may be specified on the command line
  187. or in the option database
  188. to configure aspects of the toplevel such as its background color
  189. and relief.  The <STRONG>toplevel</STRONG> command returns the
  190. path name of the new window.</P>
  191. <P>A toplevel is similar to a frame except that it is created as a
  192. top-level window:  its X parent is the root window of a screen
  193. rather than the logical parent from its path name.  The primary
  194. purpose of a toplevel is to serve as a container for dialog boxes
  195. and other collections of widgets.  The only visible features
  196. of a toplevel are its background color and an optional 3-D border
  197. to make the toplevel appear raised or sunken.</P>
  198. <P>
  199. <HR>
  200. <H1><A NAME="widget methods">WIDGET METHODS</A></H1>
  201. <P>The <STRONG>Toplevel</STRONG> method creates a widget object.
  202. This object supports the <STRONG>configure</STRONG> and <STRONG>cget</STRONG> methods
  203. described in <A HREF="../../../site/lib/Tk/options.html">the Tk::options manpage</A> which can be used to enquire and
  204. modify the options described above.
  205. The widget also inherits all the methods provided by the generic
  206. <A HREF="../../../site/lib/Tk/Widget.html">Tk::Widget</A> class, and the <A HREF="../../../site/lib/Tk/Wm.html">Tk::Wm</A> class.</P>
  207. <P>
  208. <HR>
  209. <H1><A NAME="bindings">BINDINGS</A></H1>
  210. <P>When a new toplevel is created, it has no default event bindings:
  211. toplevels are not intended to be interactive.</P>
  212. <P>
  213. <HR>
  214. <H1><A NAME="see also">SEE ALSO</A></H1>
  215. <P><A HREF="../../../site/lib/Tk/Widget.html">Tk::Widget</A>
  216. <A HREF="../../../site/lib/Tk/Wm.html">Tk::Wm</A></P>
  217. <P>
  218. <HR>
  219. <H1><A NAME="keywords">KEYWORDS</A></H1>
  220. <P>toplevel, widget</P>
  221. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  222. <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
  223. <STRONG><P CLASS=block> Tk::Toplevel - Create and manipulate Toplevel widgets</P></STRONG>
  224. </TD></TR>
  225. </TABLE>
  226.  
  227. </BODY>
  228.  
  229. </HTML>
  230.