Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there any object here ?
Message
From
25/05/2005 05:47:27
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
25/05/2005 05:31:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01017390
Message ID:
01017395
Views:
16
>>Is there a way to know if any object is placed at a certain location ?
>>For example if I want to place an object ( a shape) at a certain location,
>>i'd like to know if another object occupies the place where I want to put
>>it.....
>>Comments and appreciations about my english are not welcome :-)
>>
>>Alessio
>
>oRef = sys(1270,nX,nY)
>
>However I think it wouldn't be sufficient for you to check a single point. I've some code checking a rectangular area (if I can find it, I'll post:)
>Cetin

And knowing your original problem, assuming you're using shapes coming from a common class, you might make it another way. Instead of checking, shapes could say soemthing like 'hey you're stepping over me'. Something like in pseudocode:

MouseEnter-Feedback you entered at my region
MouseLeave-OK you left my domain

PS: This has problems (mouse might be at center of another shape moving and it edge touches another shape before you know).
OleDragDrop effects might help?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform