Results 1 to 4 of 4

Thread: Capturing mousedown/mouseup for screen position through child controls

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2009
    Posts
    11

    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.

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    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?
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2009
    Posts
    11

    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.

  4. #4
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Capturing mousedown/mouseup for screen position through child controls

    Hi,
    I THINK opennetcf supports the messagefilter

    Pete
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width