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/

Reply via email to