Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Link control points still accessible... (Read 3053 times)
Benoit Caron
YaBB Newbies
*
Offline



Posts: 10
Joined: Apr 8th, 2009
Link control points still accessible...
Apr 8th, 2009 at 8:40pm
Print Post  
Hello everyone,

All my links have the following default values:

Style = LinkStyle.Bezier
HandlesStyle = HandlesStyle.Custom

In my event handler attached to the Diagram.HitTestAdjustmentHandles event, I always leave HitTestEventArgs.HitResult to its default value of -1.

The problem is that the bezier control points, even if they are not visible,  are still pickable if you move your cursor over them.  You can pick them and modify the bezier.

I was able to prevent the modification of the bezier by adding an event handler to the Diagram.LinkStartModifying event and setting LinkValidationEventArgs.Cancel to "true", but the cursor still chages whan moved over.

Have a nice day!
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link control points still accessible...
Reply #1 - Apr 9th, 2009 at 8:26am
Print Post  
Seems setting HandlesStyle = Custom for links does not raise the HitTestAdjustmentHandles event at all, but only lets you custom-drawing the handles. We'll implement HitTestAdjustmentHandles for links in the next release. Meanwhile, couldn't you set Locked = true for your links if you want to completely prevent their modification?

Stoyan
  
Back to top
 
IP Logged
 
Benoit Caron
YaBB Newbies
*
Offline



Posts: 10
Joined: Apr 8th, 2009
Re: Link control points still accessible...
Reply #2 - Apr 9th, 2009 at 2:10pm
Print Post  
Hi,

I tryed using the Lock property but I still need the link to be selectable. (My "delete" function affect the selected items)

This is just a "cosmetic" thing, I can wait for the next release Smiley

Thanks,
Benoît
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link control points still accessible...
Reply #3 - Jun 3rd, 2009 at 10:14am
Print Post  
Hi,

If you care to try the beta version, now HitTestAdjustmentHandles should be raised for links:
https://mindfusion.eu/_beta/fcnet53.zip

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint