Well, you could catch each repeat event and inject a SysTaskDelay...
As for the rolling over, set an if in your ctlRepeatEvent that, when
your value is equal to "9", reset it to 0 and re-increment it from there.
I did this once when I was trying to make my own clone of the set time
dialog.
-Rus
>-----Original Message-----
>From: McKee, Kevin L. [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, June 07, 2000 8:01 AM
>To: Palm Developer Forum
>Subject: Repeating Buttons...
>
>
>Does anyone have a quick trick to slow down the repeating action when a
>repeating button is pressed. Currently when I press the
>repeating button it
>either jumps by twos or threes. Also, I would like for the repeating
>button to be able to 'roll over' a number when pressed. IE, I
>have a label
>(OneLabel) that is a single digit, I would like, when the
>repeating button
>is pressed, for the numbers to just keep rolling,
>1-2-3-4-5-6-7-8-9-0-1-2-3-4-5-6-7-8-9-0-etc...
>
>Code sample
>case UpRepeating:
>{
>if ( s_num < 9 )
> {
> s_Num ++;
> StrPrintF ( szNum, "%d", s_Num );
> FrmCopyLabel ( frm, OneLabel, szNum );
> }
>}
>break;
>
>case DownRepeating:
>{
>if ( s_num > 0 )
> {
> s_Num --;
> StrPrintF ( szNum, "%d", s_Num );
> FrmCopyLabel ( frm, OneLabel, szNum );
> }
>}
>break;
>
>
>Regards,
>Kevin Mckee
>
>--
>For information on using the Palm Developer Forums, or to
>unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/