home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Prograph Classic 2.6.1 / Examples / Super_System_Classes / Modal Windows ƒ / Modal Example.ReadMe < prev   
Encoding:
Text File  |  1994-10-21  |  1.5 KB  |  27 lines  |  [TEXT/ttxt]

  1. Example:      Modal Windows
  2. Written by:  Prograph International (Tim Snyder, Lynn McKaig)
  3. Contents:      Modal Example.pgs
  4.                     Modal Example.ReadMe
  5.  
  6. Needs Prograph Extensions:
  7.                     Math Primitives
  8.                     More Primitives
  9.                     Primitives
  10.  
  11. Needs Libraries to Compile:
  12.                     SCLibrary 2.6
  13.                     Library 2.6
  14.  
  15. Description
  16. -----------
  17. Normally, when you open a Prograph window by calling /Open,  control returns to your code immediately.  In other words, in the method that calls /Open, the next operation executes as soon as the window has been opened.  For certain tasks, it would be more convenient if the next operation didn't execute until the window closed.  This would be the case if you were in the middle of processing some task, and you needed to get some information from the user before you could continue processing.
  18.  
  19. The Universal "Modal Event Loop" in this file lets you do just that.  In addition, while the window is active, Command keys and clicks outside the window are ignored and cause the system to beep.
  20.  
  21. The application executed when you select Run Initial is just an example of using a modal dialog in this way.  See the "order" method in class "Sandwich Window" for the example code which calls "Modal Event Loop".
  22.  
  23.  
  24. How to Use in Your Program
  25. -------------------------
  26. Simply load the Universal method "Modal Event Loop" into your program file and call it instead of /Open with the Window as input.  
  27.