|
-
Oct 30th, 2001, 07:23 AM
#1
Thread Starter
Junior Member
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.
-
Oct 30th, 2001, 09:33 AM
#2
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....
-
Oct 31st, 2001, 02:25 AM
#3
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|