Results 1 to 3 of 3

Thread: Accessing Mouse Status Dynamically

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2001
    Location
    Near Sheerness in Kent, UK
    Posts
    25

    Cool Accessing Mouse Status Dynamically

    I am trying to get hold of the mouse X,Y coords and button status. However, it is not in response to a mouse click or mouse move event. A code sample would be gratefully received.

    Thanks in advance.
    Shaun Pudwell.


  2. #2
    jim mcnamara
    Guest
    The way you describe it, you want mouse information from other windows that are not in your program?

    Any time the mouse moves it generates messages, no matter where on the screen it is. So, where are we talking about....

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2001
    Location
    Near Sheerness in Kent, UK
    Posts
    25

    VB: Dynamic Mouse Control from Anywhere

    Hi,

    Im operating from inside my own apps main window, however I have a large array of dynamic objects, e.g. Labels, Shapes and Bitmap Images. Shapes register the mouse, so I can work out what shape Im clicking on. However, with labels, I have no control of the mouse when its located inside the label. I therefore wanted a generic mouse status routine that could be called from within a timer. It is not possible to use the WithEvents statement, because of the way the system has been set-up. I have a user defined type with my object arrays inside. WithEvents cannot be used outside of a module. I would never have the same problem under 'C/C++', but VB is event driven, hence the problem.

    I hope that clarifies the matter.

    Regards
    Shaun Pudwell.

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