home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / program / pascal / pasdox / dodial.txt < prev    next >
Text File  |  1985-11-18  |  2KB  |  55 lines

  1. { -----------------------------------------------------------------------------
  2.  
  3.                                  NOTICE:
  4.  
  5.       THESE MATERIALS are UNSUPPORTED by OSS!  If you do not understand how to
  6.       use them do not contact OSS for help!  We will not teach you how to 
  7.       program in Pascal.  If you find an error in these materials, feel free
  8.       to SEND US A LETTER explaining the error, and how to fix it.
  9.  
  10.       THE BOTTOM LINE:
  11.  
  12.          Use it, enjoy it, but you are on your own when using these materials!
  13.  
  14.  
  15.                                DISCLAIMER:
  16.  
  17.       OSS makes no representations or warranties with respect to the contents
  18.       hereof and specifically disclaim all warranties of merchantability or
  19.       fitness for any particular purpose.   This document is subject to change
  20.       without notice.
  21.       
  22.       OSS provides these materials for use with Personal Pascal.  Use them in
  23.       any way you wish.
  24.  
  25.    -------------------------------------------------------------------------- }
  26.  
  27.  
  28.           Using Do_Dialog Without Editable Text Fields
  29.  
  30.                        September 29, 1986
  31.  
  32.  
  33. The   Personal  Pascal  Manual  is  somewhat  misleading  in   its 
  34. description of the Do_Dialog function (page 5-34).   In the second 
  35. paragraph, the manual states:
  36.  
  37. "The second parameter is only significant if the box contains  one 
  38. or more editable text fields.   If so,  then it specifies the item 
  39. number of an editable field, and the text cursor will be placed in 
  40. that field when the dialog is executed."
  41.  
  42. This  is  quite true,  but leads you to believe  that  the  second 
  43. parameter  is ignored if there are no editable text fields in  the 
  44. box.   This is not true!  If you have no editable text fields in a 
  45. dialog box, use the value 0!  If you pass any other value, the GEM 
  46. operating  system  will "hang up" the computer,  or  cause  a  Bus 
  47. Error.   This also applies to using a dummy variable as the second 
  48. parameter.   If  you  use  a dummy  variable,  the  value  is  NOT 
  49. guaranteed to be zero.
  50.  
  51. If  you  have  been experiencing unexplained  system  hang-ups  or 
  52. crashes  when accessing dialog boxes with no editable  text,  this 
  53. is almost certainly the problem.
  54.  
  55.