Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. how do I add a IMessageFilter to catch mouse down event [modified]

how do I add a IMessageFilter to catch mouse down event [modified]

Scheduled Pinned Locked Moved Mobile
questionhelptutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Ola E
    wrote on last edited by
    #1

    I'm trying to catch the mouse down and up event and add them to a button control. I'm planing to use IMessageFilter to add the missing events. Now to my problem, It seems like application.addfilter don't exist's in cf... Do anyone have a clue on how to catch mouse events in cf?? Or perhaps i'm looking in the wrong direction? Is there a better way to do this?? Thanks Ola

    modified on Tuesday, December 9, 2008 12:39 AM

    G 1 Reply Last reply
    0
    • O Ola E

      I'm trying to catch the mouse down and up event and add them to a button control. I'm planing to use IMessageFilter to add the missing events. Now to my problem, It seems like application.addfilter don't exist's in cf... Do anyone have a clue on how to catch mouse events in cf?? Or perhaps i'm looking in the wrong direction? Is there a better way to do this?? Thanks Ola

      modified on Tuesday, December 9, 2008 12:39 AM

      G Offline
      G Offline
      Giannakakis Kostas
      wrote on last edited by
      #2

      The Mouse Down and Up events are already available for the button control. Why don't you extend it to add the desired functionality? If you are actually trying to create a global mouse event hook, this is not possible in Windows Mobile.

      O 1 Reply Last reply
      0
      • G Giannakakis Kostas

        The Mouse Down and Up events are already available for the button control. Why don't you extend it to add the desired functionality? If you are actually trying to create a global mouse event hook, this is not possible in Windows Mobile.

        O Offline
        O Offline
        Ola E
        wrote on last edited by
        #3

        According to a lot of places mouse down and other event's are not supported ny .net compact framework. I have looked for the mouse down event in my visual studio 2008, and it's simple not there. I have found several links to msdn forums stating that this is one of the things not implemented in the comapct framework.

        G 1 Reply Last reply
        0
        • O Ola E

          According to a lot of places mouse down and other event's are not supported ny .net compact framework. I have looked for the mouse down event in my visual studio 2008, and it's simple not there. I have found several links to msdn forums stating that this is one of the things not implemented in the comapct framework.

          G Offline
          G Offline
          Giannakakis Kostas
          wrote on last edited by
          #4

          You are right - the mouse down and up events aren't available for buttons. I remember seeing them in CF applications and I erroneously assumed they were available. I've checked and they are available for Panel control. Perhaps you could override this to have button functionality. Or may be there is a simple control that supports these events and can serve as basis.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups