"Mike Davis" <[EMAIL PROTECTED]> wrote:
> I have never used the repeating buttons. I have need
> for one but cannot get it to repeat.
>
> The ctlRepeat event does not seem to be repeated while
> the pen is down. What is required to get the repeat
> event to work.
>
> I have a function (DoSomething) that is to be repeated
> when the repeat button is pressed. It executes once
> but does not repeat. What else is required?
>
> case ctlRepeatEvent:
> if (event->data.ctlRepeat.controlID == rptC1L ) {
> DoSomething();
> handled = 1;
> break;
> }
Your problem is caused by returning handled = 1. Return 0 instead.
Is this in a FAQ and/or the knowledge base? If not, it should be.
--
Roger Chaplin
<[EMAIL PROTECTED]>