Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting a Click on a line object
Message
From
12/08/2005 02:27:05
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01040465
Message ID:
01040484
Views:
15
>This post definitely caught my eye... I've worked on a number of CAD and Construction Blueprint manipulation projects in Visual FoxPro and this is one of the things that really created some havoc the first time I ran into it (that and creating and shading irregular shapes - though Visual FoxPro 9 fixed that with the advent of the polypoints property). Anyways, the solution I came up with was not as hard as it first looked to figure out whether the mouse is over the line. Here's a working example... just cut-n-paste into a prg file and run it. Then pass your mouse over the lines and as the mouse is directly over the line it will change the line's color so you know that it's being detected. The important code is in the lineex class's mousemove event, just place that type of code in your line's mousedown event to decide whether the click is to be considered an "actual" click or not.
>

Hi Craig,

Have you a ready solution for :
- on polypoints line mouse event
- within polypoints zone mouse event
- with support for Bezier curve

If yes, can you post,
I can write it, but it is useless to continually invent the warm water.

Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform