Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ArrowCreating called too late (Read 1884 times)
ooswald
YaBB Newbies
*
Offline



Posts: 16
Joined: Jun 15th, 2006
ArrowCreating called too late
Jun 20th, 2006 at 12:00pm
Print Post  
ArrowCreating is fired only AFTER the mouse button has been released (in contradiction to ArrowAttaching which fires each time an arrow endpoint is dragged close to an anchor point).

I need to give visual feedback to the user whether an arrow between two anchor points can be created or not. This works fine when an existing arrow is modified.

However, when an arrow is created, only ValidateAnchorPoint gets called while the endpoint is dragged to the destination node's anchor point. The problem is, that none of the AttachConfirmArgs properties contains a reference to the arrow's base node.

While the user is creating an arrow from one node to another, how can I know from which node he is creating the arrow?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ArrowCreating called too late
Reply #1 - Jun 20th, 2006 at 12:52pm
Print Post  
ArrowCreating works as designed & documented; we can make it raised for every MouseMoved event in the next version. The ValidateAnchorPoint event arguments include an Origin property that should return the base node.
  
Back to top
 
IP Logged
 
ooswald
YaBB Newbies
*
Offline



Posts: 16
Joined: Jun 15th, 2006
Re: ArrowCreating called too late
Reply #2 - Jun 20th, 2006 at 12:55pm
Print Post  
unfortunately the Origin property is null when an arrow is created  Embarrassed
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ArrowCreating called too late
Reply #3 - Jun 20th, 2006 at 1:53pm
Print Post  
Ok, you cannot use ValidateAnchor for that before the arrow is created because the Origin and Destination are not set yet. We can update the event so its arguments specify the would-be origin and destination. We can do that in the following couple of days - let me know what .NET version do you use if you wish to receive our daily FC.NET builds when that's implemented.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint