In case you otherwise missed them: Here they were.

On 25/10/2006, at 3:15 PM, Aaron Ardiri wrote:
i'm not a palmsource employee - but, i can probably put a few cents
into this disucssion - and, i've written a tonne of gui handling code for
the palmos :)

here is the most obvious answer:

 A. you dont always need a reference to the active form

thats pretty much it. if you always needed the reference; then i am sure that it would have been put as a parameter within the callback itself. if you take a few minutes to look at the event type structure; you'll see that
what palmsource has actually done is optimized a lot for you.

why call:

FrmGetActiveForm() .. FrmGetObjectPtr() ...

when, in the ctlSelect event - there is a  "e ->
data.ctlSelect.pControl" object?

90% of the time; unless you are doing something semi-funky, you can get everything you need from within the event structure itself - most people dont
bother to look in there.


On 25/10/2006, at 8:21 AM, Jeff Loucks wrote:
FrmDispatchEvent() needs to (and does) know the form pointer to
retrieve the handler, so why not just pass it to the handler? Well,
other than the obvious that maybe they didn't originally consider it,
or that the event handler API was legacy, a wild reaching guess would
be 1) not all events are form related, so the form pointer may not be
needed, and 2) the form pointer may be changing anyway, depending on
what you do in response to the event.

I don't know what you expect to do with the answer, should anyone be
able to provide one. As a matter of curiosity, it may be an
interesting discussion, especially since it seems to be simply a
matter of passing the current form pointer on the stack, but the
original developers are probably not listening, and the rest of us can
only speculate.

We could each make a list a mile long of all the things we wish Palm
had done, or done differently, but to what end? Much of what PalmOS
has become is the result of years of reactionary changes (some would
say "twitches, jerks and spasms"), so second guessing how PalmOS
achieved it's current state is not a very productive persuit.



On 27/10/2006, at 9:52 PM, Regis St-Gelais wrote:

"Jay" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
Very strange forum.  Kind of a closed group as far as I can tell.
Posted a question - and there is no answer, no info, no contact
whatsoever.

Bye, bye, Palm -
Hello Windows CE



If I count right, you got 2 answers on your
"Hoping for a response: Event handling and pointer-to-active-form" question.

One from Jeff Loucks and one from Aaron Ardiri.

--
Regis St-Gelais
www.laubrass.com



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


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

Reply via email to