Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - <b>how may i control events ?</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 How may I control events ?
--------------------------------------------------------------------------------

   In DOS, xBase applications normally manage a very few kinds of events:

           certain Keys pressed:  SET KEY ... TO ...    (Clipper style)
                                  ON KEY ... ...        (dBase style)

           error management:      ON ERROR ...          (dBase style)


   In Windows there are more event control situations that we will
   manage. This is the xBase syntax FiveWin uses:

           ...

           ON <EventName> <uAction>
           ...

   The <uAction> you defined is kept in a CodeBlock that will be
   evaluated when the <EventName> occurs.

   These are some of the most typical Windows events:

           ON PAINT ...
           ON MOVE ...
           ON RESIZE ...

           ON LEFT CLICK ...
           ON RIGHT CLICK ...
           ON LEFT DOUBLE CLICK ...
           ...

   Don't think that events are just something related to Windows activity.
   There are many circumstances that may generate events.
   For example, during report generation, there are a lot of events:

           ON STARTPAGE ...
           ON ENDPAGE ...
           ON STARTLINE ...
           ON ENDLINE ...
           ON STARTGROUP ...
           ON ENDGROUP ...
           ...

   FiveWin lets you define actions to be performed when these events
   occur. The action you defined is what is usually called a
   'call-back', because FiveWin will evaluate (call back) those actions
   when the events are happening.



Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson