Just a thought: Are you falling through to another case in the event handler? You have a break for the case in switch(eventP->data.ctlRepeat.controlID), do you have one for the outer 'case ctlRepeatEvent'? If not, you might be getting an incorrect handled value returned.
"Dave Ellis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I hope that this is not too stupid a question, but > ctlRepeatEvent isn't doing what I want it to do. > > This is the basic code I have in my event handler: > > case ctlRepeatEvent: > switch > (eventP->data.ctlRepeat.controlID) { > > case UpButton: > DoStuff(); > handled = false; > break; } > > Now, the ctlSelectEvent handler also calls DoStuff(), > but when I tap the button, no matter whether it is for > a fraction of a second, or held down for many seconds, > it always just calls DoStuff() twice. I'd appreciate > any help, as I really can't work out what has gone > wrong, as I have done everything I can think of, and > have made sure that it returns handled as false, which > should continue the ctlRepeatEvent loop. > > Thanks in advance, > > David > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
