TrackMouseEvent / Mouse AutoRepeat

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am working on a custom control Scrollbar. For that I need the ability to
have something like an "auto repeat" in case the stylus stays on one of the
"move up/down" buttons. (I can not inherit from the std controls for
different reasons.)

Now, on the desktop version TrackMouseEvent as a P/invoke helps to generate
MouseHover events. This is not available apparently under CF. So my question
is: is there any "convenient" way to have something similar, an auto repeat
on a MouseMove? MouseMove alone apparently won't do it (I think) unless it
can be configured to have an "auto repeat"?

Any suggestions are really welcome!

Best regards
tb
 
How about starting a timer in the MouseDown event and stopping it in the
MouseUp
 
Aley, thanks for the hint. I had hoped the CE OS would have something hidden
somewhere I was missing instead but that's of cause a solution - stop it on
(MouseUp || MouseMove outside button.bounds).

Thanks again for the quick help!
Cheers
Theo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top