CF Mouse wheel events

G

Guest

I have posted on this before and tried a few low level things without much
sucess.

I want to trap the mouse events in a multi form Windows Mobile 5 application.
The forms are full screen, taskbar hidden, auto scrolling disabled.

Using a Stowaway Bluetooth mouse and its driver.

Whilst when used with desktop windows, the mouse events are trappable, not
so on CF with WM5. THey tend togo to a form's window scroll, which I don't
want.

So I have added a vertical slider. When I click on the form the vents can
go through to the slider, whose event I can trap.

Problem is that I have to click on the form first. The app involves moving
through many forms and having to cickbefore using an up and down gesture with
the wheel is a pain.

I have tried setting focus to the slider when the forem gets focus but it
soon looses focus (can trap its lost focus event)

Any help would (urgently) be appreciated. Been tryingt o solve this for days!

So the question is: "How can I force the focus and activity of a form to a
vertical slider control using CF and WM5 when a form is brought to the form
with a form.show event on another form."

Thx
--
David Jones
Senior Lecturer
School of Electrical & Computer Engineering
RMIT University
+61 3 99255318
 
G

Guest

Have you tried adding an IMessageFilter to the Form and intercepting the
scroll messages there?
 

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

Similar Threads


Top