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.
:cool:
Printable View
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.
:cool:
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....
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.