E&l2a0o8d88p80F(s0p16.66h8.5v0s0b0T(10U
                                          Ŀ
ͻ    This is a listing of all of the events that WAIT can trap for, plus 
 Paradox 4.0 WAIT Events/Triggers Map     the resulting TriggerType values and EventRecord array structures   
ͼ    and their potential values.                                         
                                          
                                                                                Ŀ
                                                                                 Prepared by Charles Savage  
    WAIT { FIELD | RECORD | TABLE | WORKSPACE }                                  Nov 8, 1992  Rev Jan 2, 1993
                                                                                 Atkinson-Baker & Associates 
        PROC "WaitProc" (TriggerType, EventRecord, CycleNumber)                  CompuServe 70531,3425       
          Returns:  0 = Proceed, 1 = Loop WAIT, 2 = Quit WAIT           

       MOUSE   { "ALL" / "UP" | "DOWN" | "MOVE" | "AUTO" }
       KEY     { "ALL" / (List of key codes, PAL Reference, p. 443) }
  Ĵ MESSAGE { "ALL" / "MENUSELECT" | "MENUKEY" | "CLOSE" | "MAXIMIZE" | "NEXT" }
      IDLE
      TRIGGER { "ALL" / "DEPARTFIELD" | "DEPARTROW" | "TOUCHRECORD" | "DEPARTPAGE" | "POSTRECORD" | "IMAGERIGHTS" |
                         "PASSRIGHTS" | "REQUIREDVALUE" | "VALCHECK" | "DISPLAYONLY" | "READONLY" | "ARRIVEPAGE" |
                         "ARRIVEWINDOW" | "ARRIVETABLE" | "ARRIVEROW" | "ARRIVEFIELD" }
  
   ENDWAIT
     Returns:  2002 = Normal termination, 2003 = WAIT error, 2004 = All images closed, 2005 = WaitProc error
  
  
  
EVENT LIST ITEM     TRIGGERTYPE         EVENTRECORD (dynamic array)
(caught by WAIT)    (string var)        ["Type"]    Other Elements...
              
  MOUSE               "EVENT"            "MOUSE"    ["Action"]   ["Row"]   ["Col"]   ["Buttons"]   ["DoubleClick"]
                                                    "DOWN"        #         #      "LEFT"      True
                                                    "UP"                           "RIGHT"     False
                                                    "MOVE"                         "BOTH"
                                                    "AUTO"                         "NONE"

  KEY                 "EVENT"            "KEY"      ["ScanCode"]   ["KeyCode"]  (List of key codes, PAL Reference, p. 443)

  MESSAGE             "EVENT"            "MESSAGE"  ["Message"]    ["MenuTag"]
                                                    "CLOSE"          (String var assigned by script.)
                                                    "MAXIMIZE"   
                                                    "NEXT"       
                                                    "MENUSELECT"
                                                    "MENUKEY"

  IDLE                "EVENT"            "IDLE"     (No other elements assigned.)

  TRIGGER  "DEPARTFIELD"     (EventRecord array elements are set by the key,
                "DEPARTROW"        mouse or other event that causes the trigger.)
                "DEPARTTABLE"                      
                "TOUCHRECORD"                      
                "DEPARTPAGE"                       
                "POSTRECORD"                       
                "IMAGERIGHTS"                      
                "PASSRIGHTS"                       
                "REQUIREDVALUE"                    
                "VALCHECK"                         
                "DISPLAYONLY"                      
                "READONLY"                         
                "ARRIVEPAGE"                       
                "ARRIVEWINDOW"                     
                "ARRIVETABLE"                      
                "ARRIVEROW"                        
                "ARRIVEFIELD"                      

WAIT calls PROC at each event named by your script in the event list.  WAIT passes TriggerType, EventRecord and
CycleNumber to the PROC.  An event driven WAIT command forms a loop between WAIT and ENDWAIT.

TriggerType is a string variable.  The possible values of TriggerType are listed in the "TRIGGERTYPE" column.

EventRecord is a dynamic array, the same array in each circumstance that would be produced by GETEVENT().  The array
structure can be different for each type of event, and variables in each element will differ also.  The one element that
is the same for all EventRecord arrays is EventRecord["Type"].  This will always be one of four strings, "MOUSE", "KEY",
"MESSAGE" or "IDLE."  The value of EventRecord["Type"] is listed in the ["Type"] column.  The remaining elements of the
EventRecord array are listed in the "Other Elements..." column.

The returned value of the WaitProc controls WAIT.  Wait returns a value which indicates why it ended.  The returns from
both WAIT and the WaitProc are numerical values.
E
