Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trapping what is Clicked
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00099083
Message ID:
00099841
Views:
27
Right. I also have to make sure the SYS function returns an object via the TYPE function. It returns .F. if the mouse is over a different application. I have always checked for the Ctrl-C (Cancel) key sequence and won't stop now.

If the object is on a different form I don't want the Valid event to fire because they are off to something else. They don't want a pick list coming up. I'll have to look into this.

Take care,

Joe


>Joe,
>
>Remember though that there are alternate keyboard ways of getting to that control, and in fact the mouse may be just hovering over a completely separate control, that might even be on another form.
>
>>I tried it...works great. Thanks for the warning Jim. I tested that too. You are right...now way out...I am doing the SYS(1270) and sticking the name property into a local and releasing the object right away...
>>
>>I am happy that VFP makes these low-level functions available. It solves a lot of problems.
>>
>>Take care,
>>Joe
>>
>>>>U can use the SYS(1270) function to get an object reference to the object under the mouse cursor and the MDOWN() function to look if the object is clicked
>>>Walter,
>>>
>>>Yes you can, but be very carefull that you destroy that object reference as soon as possible. If you don't you will find that your form will not go away because of that errant object reference to one of the controls.
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Reply
Map
View

Click here to load this message in the networking platform