If you look at your main event loop, it should look something like:

static void EventLoop(void)
{
 EventType event;
 Word   error;
 
 do
  {
  // Get the next available event.
  EvtGetEvent(&event, evtWaitForever);
 
  // Give the system a chance to handle the event.
  if (! SysHandleEvent(&event))

   // P2. Give the menu bar a chance to update and handle the event.
   if (! MenuHandleEvent(0, &event, &error))

    // P3. Give the application a chance to handle the event.
    if (! ApplicationHandleEvent(&event))
     // P3. Let the form object provide default handling of the event.
     FrmDispatchEvent(&event);
  }
 while (event.eType != appStopEvent);
}

It's easy to understand why isn't the form receiving low-level events. They are being absorved by SysHandleEvent, which generates other, high-level, events.
You can create your own event types. Just add another event handling routine to the main event loop.
 

--
Sergio Carvalho
---------------
[EMAIL PROTECTED]
[EMAIL PROTECTED]

If at first you don't succeed, skydiving is not for you
 

Reply via email to