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

  1.  
  2. <HTML>
  3. <HEAD>
  4. <TITLE>messageBox  -  pop up a message window and wait for user response.</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> messageBox  -  pop up a message window and wait for user response.</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="#description">DESCRIPTION</A></LI>
  25.     <LI><A HREF="#example">EXAMPLE</A></LI>
  26.     <LI><A HREF="#author">AUTHOR</A></LI>
  27. </UL>
  28. <!-- INDEX END -->
  29.  
  30. <HR>
  31. <P>
  32. <H1><A NAME="name">NAME</A></H1>
  33. <P>messageBox  -  pop up a message window and wait for user response.</P>
  34. <P>
  35. <HR>
  36. <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
  37. <UL>
  38. <LI>Linux</LI>
  39. <LI>Solaris</LI>
  40. <LI>Windows</LI>
  41. </UL>
  42. <HR>
  43. <H1><A NAME="synopsis">SYNOPSIS</A></H1>
  44. <P>    <EM>$response</EM> = <EM>$widget</EM>-><STRONG>messageBox</STRONG>(<EM>-option</EM> => <EM>value</EM>, ... );</P>
  45. <P>
  46. <HR>
  47. <H1><A NAME="description">DESCRIPTION</A></H1>
  48. <P>This method uses <A HREF="../../../site/lib/Tk/Dialog.html">Tk::Dialog</A> to quickly create several common dialog boxes.
  49. A dialog widget consists of a message, an icon and a set of buttons (see
  50. the <EM>-type</EM> option).  After the message window is popped up,  <STRONG>messageBox</STRONG>
  51. waits  for the user to select one of the buttons and return the button text.
  52. NOTE:  unlike <STRONG>Tk::Dialog</STRONG> which creates its widget once and can be used
  53. many times, the <STRONG>messageBox</STRONG> window is created every time it's used.</P>
  54. <P>The following option/value pairs are supported:</P>
  55. <DL>
  56. <DT><STRONG><A NAME="item_%2Ddefault"><STRONG>-default</STRONG></A></STRONG><BR>
  57. <DD>
  58. The case-sensitive symbolic name of the default button
  59. for this message window  ('OK',  'Cancel'  and  so
  60. on).  See  <STRONG>-type</STRONG>  for a list of the symbolic names.
  61. If the message box has  just  one  button  it  will
  62. automatically  be  made  the  default, otherwise if
  63. this option is not specified, there  won't  be  any
  64. default button.
  65. <P></P>
  66. <DT><STRONG><A NAME="item_%2Dicon"><STRONG>-icon</STRONG></A></STRONG><BR>
  67. <DD>
  68. Specifies an icon to display. Any of the builtin Tk bitmaps can
  69. specified.
  70. <P></P>
  71. <DT><STRONG><A NAME="item_%2Dmessage"><STRONG>-message</STRONG></A></STRONG><BR>
  72. <DD>
  73. Specifies the message to display.
  74. <P></P>
  75. <DT><STRONG><A NAME="item_%2Dtitle"><STRONG>-title</STRONG></A></STRONG><BR>
  76. <DD>
  77. Specifies  a  string to display as the title.
  78. <P></P>
  79. <DT><STRONG><A NAME="item_%2Dtype"><STRONG>-type</STRONG></A></STRONG><BR>
  80. <DD>
  81. Specifies a predefined set of buttons to be displayed. The following values are possible:
  82. 'AbortRetryIgnore', 'OK', 'OKCancel', 'RetryCancel', 'YesNo' or 'YesNoCancel'.
  83. <P></P></DL>
  84. <P>
  85. <HR>
  86. <H1><A NAME="example">EXAMPLE</A></H1>
  87. <P><EM>$repsonse</EM> = <EM>$mw</EM>-><STRONG>messageBox</STRONG>(-icon => 'questhead', -message => 'Hello World!', -title => 'My title', -type => 'AbortRetryIgnore', -default => 'Retry');</P>
  88. <P>
  89. <HR>
  90. <H1><A NAME="author">AUTHOR</A></H1>
  91. <P><A HREF="mailto:Stephen.O.Lidie@Lehigh.EDU.">Stephen.O.Lidie@Lehigh.EDU.</A>  98/05/25</P>
  92. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  93. <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
  94. <STRONG><P CLASS=block> messageBox  -  pop up a message window and wait for user response.</P></STRONG>
  95. </TD></TR>
  96. </TABLE>
  97.  
  98. </BODY>
  99.  
  100. </HTML>
  101.