|
-
Feb 27th, 2009, 04:26 PM
#1
Thread Starter
New Member
Capturing mousedown/mouseup for screen position through child controls
Hi all,
I want to implement basic finger gestures within one of my apps, but have got stuck at the first hurdle.
There are a few examples on the net, but they seem to use custom controls that do not allow easy use of other controls.
I really just need a way to capture the MouseDown/Up methods even through a child control, still allowing clicks to be captured by whatever control has been clicked.
I'll then do some basic maths to find out what type of gesture has been done. Left to Right, Right to Left, Up to Down, Down to Up, that's all I need.
Obviously MouseDown and Up get eaten by child controls. MouseMove will give position, but only when the mousedown method is activated.
Cheers for any help or advice given.
Paul.
-
Feb 27th, 2009, 04:49 PM
#2
Frenzied Member
Re: Capturing mousedown/mouseup for screen position through child controls
Why can't you just use the 'mouseup','mousedown', 'mousemove' events of the form or the control and respond to those?
-
Feb 28th, 2009, 11:40 AM
#3
Thread Starter
New Member
Re: Capturing mousedown/mouseup for screen position through child controls
Because I have quite a few child controls, including a tab control which has it's own child controls.
I'm looking for a one stop solution so I don't have to deal with 30 or so Mousedown events.
I've seen application.addmessagefilter, but not sure if it's supported in the mobile framework.
See here.
-
Feb 28th, 2009, 01:50 PM
#4
Frenzied Member
Re: Capturing mousedown/mouseup for screen position through child controls
Hi,
I THINK opennetcf supports the messagefilter
Pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|