At 9:08 AM +0200 25-04-00, Paul Litvak wrote:
>I am working with the Datebook source code (the one included in SDK 3.1). I
>place a button on a form such as the Appointment Details dialog. When
>running the app, clicking on that particular button generates a
>ctlSelectEvent, but
>event->data.ctlSelect.controlID is something completely bogus like 65272. It
>also looks like *(event->data.ctlSelect.pControl) = -2. Looks like the OS is
>detecting the button click but is not passing the right information for the
>button in the event data structure. Any suggestions?
Possibly your form object has been corrupted. It's relatively easy to
overwrite objects accidently, which can change the value of the ID stored
in memory and this leads to weird values in the events.
This can be hard to debug, because you never know where you're corrupting
things or following the wrong pointer. Poser can help, and so can
PalmDebugger.
--Bob
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html