Stuart-

Yes, that's fine, in fact it's the ideal way to use the API to have your
own events. I use it to track double- and triple- taps in one of my
applications. I think the first user event is defined somewhere as
'firstUserEvent' and is 32768 I think. You should be able to find it...

Good luck,

Alan Pinstein
Synergy Solutions, Inc.
http://www.synsolutions.com
1-800-210-5293


>Problem:  Is it possible to define application custom UI events that can
>be used
>to communicate between forms in an application?
>
>I ask because I notice the event type enum uses a very narrow range of the
>possible enum values, and there appears to be a 'generic' structure in the
>event data union (I've been poking around in Event.h, look at
>EventType.data.generic! ).
>
>My experiments tend to suggest that any events with 'funny looking' event
>types
>simply get passed back to the application's event handlers. I.e. the PalmOs
>doesn't appear to reject event types not defined in Event.h. Which is exactly
>what I want.
>
>Questions: Is there an accepted standard for generating custom events?
>
>What event types should I be using for my custom events (currently I'm using
>event numbers at the bottom end of the -ve Ints)?
>
>Are custom events an intended feature of the PalmOS or will it start treating
>them as errors at some point in the future?
>
>Is anyone else generating custom UI events out there?
>
>Any help would be greatly appreciated!
>
>Stuart Nicholson



Reply via email to