Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to tell...
Message
From
23/12/2000 11:50:04
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00455656
Message ID:
00456593
Views:
25
Hi Kevin,
I don't understand. SYS(1270), a truely great function, returns an Object Ref to the object the mouse is over. If the mouse is above THIS, I know the user didn't click to move. But if it isn't, I don't. If it's above another control I don't know much of anything. Are you saying test for MDOWN() if the LostFocus() or Valid(), then get the object ref? That doesn't work reliably on a quick click. Please explain.


>John,
>
>>any instructions on how to use sys(1270)?
>>?sys(1270) returns an error code of 9 - data type mismatch
>
>It's very simple to do *and* you don't need to create any additional flags at the form level that clutter up the interface. SYS(1270) returns an object reference to the object under the mouse pointer. So you can do a simple check to determine if the user has clicked on the object of interest.
>
>Let's say focus is on object A and the user clicks on object B. You can put the following code in object A's Valid():
>
>IF SYS(1270) = ThisForm.ObjectA
> *--- Place processing code here
>ENDIF
>
>I prefer this approach because it's self-contained and thereby a cleaner implementation.
>
>Regards,
Charlie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform