Hmmm, that did not go well at all (?) I try again...
Hi
I figured out my problem with the button down/up stuff.... Now I have another issue...
A button is clicked -> counter++ A button is held for >2 sec -> open another form
I need the form to open, even though there was no penUpEvent. Is there a timer that through an event I can use? Could I solve it with repeatButton (very new to me...)
This won't work on current versions of Palm OS.
Right now, when the user taps on a button, the system first sends a ctlEnterEvent. If this isn't handled, it goes into a tight loop, waiting for the user to lift the pen from the screen. When the user does this, it will either post a ctlSelectEvent or a ctlExitEvent, depending on the location of the pen before it was lifted. However, your code isn't running while this pen tracking loop is active.
You'll basically need to implement your own button code to do what you want. You can intercept ctlEnterEvent yourself and then track penMoveEvents, but emulating the system's highlighting of the control will be tricky. You might just want to make your own gadget and use it instead of a system button.
-- Ben Combee, DTS technical lead, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
