Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Arrow Selection when over a box (Read 4165 times)
koosala
Full Member
***
Offline


Java Happens

Posts: 136
Joined: May 13th, 2007
Arrow Selection when over a box
Jun 18th, 2007 at 6:24am
Print Post  
Hi,

An arrow can cross a box on its path. There seems to be no way an arrow can be selected when over a box.

When there is an arrow with no box under it, clicking in the vicinity of the arrow selects the arrow. So, it makes the selection of the arrow convinient.

When we have lot of boxes all over the screen, and arrows crossing them all the time, it becomes painful if we cannot select these arrows.

Is there any workaround for this?

Thanks,
Praveen
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow Selection when over a box
Reply #1 - Jun 18th, 2007 at 8:54am
Print Post  
Hi,

This is what the HitTestPriority property from Flowchart.NET does. We have recently ported it to JDiagram - here is an updated version of the .jar file:

http://mindfusion.org/_temp/JDiagram.jar

We haven't updated the NetDiagram server control to use it yet, so changes made to HitTestPriority on the server side won't be transferred to the client. For now you can set it from JavaScript using the FlowChart.setHitTestPriority() method.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
koosala
Full Member
***
Offline


Java Happens

Posts: 136
Joined: May 13th, 2007
Re: Arrow Selection when over a box
Reply #2 - Jun 18th, 2007 at 10:22am
Print Post  
Hi Stoyan,

I tried the new Jar that you have given, and I created my own applet with the flowchart control added to it.

I added the following line:

flowchart.setHitTestPriority(HitTestPriority.ZOrder);

and the arrows stopped getting selected, even when there is no underlying box.

I am using the pixel as measure unit. Could this be the problem?

In anycase, the concept sounds fair, and I guess it is just some development bug that would need to be fixed, yes?

Thanks,
Praveen
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Arrow Selection when over a box
Reply #3 - Jun 18th, 2007 at 11:24am
Print Post  
Yes, we have found some problem with cascading arrows - this version should fix it:

https://mindfusion.eu/_temp/JDiagram.jar

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