Dear subscribers.

I'm currently using a gadget on one of the forms in my application. I would
like this gadget to perform certain actions when a ctlEnterEvent or a
ctlExitEvent is received. The problem is that the only events received when
clicking on the gadget is penDownEvent and penUpEvent.

As far as I can tell the ctlEnterEvent etc. are posted by the
CtlHandleEvent() routine. I've tried to call this routine explicitly when
receiving a penDownEvent, but that didn't change anything. I'm not sure that
I need to call CtlHandleEvent() at all, since it should be called by the
SysHandleEvent() which is called in my application's event loop.

The idea is to let the CtlHandleEvent() and the Palm OS do all the pen
tracking and validations in order to do a proper posting of a ctlEnterEvent.
Is there a special deal if it's about gadgets? As far as I understand it,
the CtlHandleEvent() should do just this in response to penDownEvent and
penUpEvent.

Any clarification on this matter would be greatly appreciated.

Kind regards, Ola Theander

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to