Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Mouse Click
Message
 
To
17/09/2010 16:26:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01481672
Message ID:
01481674
Views:
35
>I have an control (container or pageframe) that contains other controls. Over this control is a transparent shape that intercepts all mouse clicks (user will not directly mouse-click on the underlying controls). I want to be able to pass the mouse click to an underlying control when the user presses the Ctrl-Mouse-Click. I know how to test for the control key pressed in the mouse events -- the question is how to determine the object that is underneath the transparent shape at the mouse coordinates? Thank you.


Take a look at ASELOBJ, I think it is what you are looking for.

err... I meant AMOUSEOBJ

err... OK, I think I need to have my lunch... first you must send the transparent shape to the bottom (or make it invisible?) then call AMOUSEOBJ to get the referenced object, and then restore the shape, I think this is what we do
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Reply
Map
View

Click here to load this message in the networking platform