views:

289

answers:

2

I'm making a program in win32 for the Windows Mobile platform (testing on WM6.1). Most of the main window consists of a single text box, and I would like to use my finger to scroll it instead of selecting the text. How would I go about doing that?

+1  A: 

Without going into the technicalities you should be looking at separating the "mouse" click event into "mouse" down and "mouse" up events.

Perform the selection on the up event if the pointer location hasn't changed since the down event. So you will need to store the pointer location on the down event.

Then you can handle the pointer move event to perform the scrolling.

ChrisF
Hey, why didn't I think of that. Thanks so much, I'll give it a try.
Warpspace
+1  A: 
Warpspace