Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ValidateAnchorPoint does not seem to fire (Read 2995 times)
consolejoker
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 74
Joined: Dec 17th, 2007
ValidateAnchorPoint does not seem to fire
Dec 30th, 2007 at 9:20pm
Print Post  
I hover a link with mouse down over another anchor point and then release. The event doesn't seem to fire. I have set allow incoming and outgoing links to the anchor.

Both nodes are instances of the same configured table.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ValidateAnchorPoint does not seem to fire
Reply #1 - Jan 1st, 2008 at 5:12am
Print Post  
Hi,

What ConnectionStyle are you using? And have you assigned the anchor points to Table.AnchorPattern, Table.RowAnchorPattern, or Row.AnchorPattern?

Stoyan
  
Back to top
 
IP Logged
 
consolejoker
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 74
Joined: Dec 17th, 2007
Re: ValidateAnchorPoint does not seem to fire
Reply #2 - Jan 1st, 2008 at 3:28pm
Print Post  
I assigned it to the node's anchorpattern.

As far as I can tell I am not explicitely setting the connectionstyle anywhere in my code, so I set it to table.RowANchorPattern, which ended up throwing a wierd exception outside of my code scope and caught from within Program.Run(form)... Same with Row.AnchorPattern.
  
Back to top
 
IP Logged
 
consolejoker
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 74
Joined: Dec 17th, 2007
Re: ValidateAnchorPoint does not seem to fire
Reply #3 - Jan 1st, 2008 at 7:39pm
Print Post  
Ok I think I fixed it, the problem was that I was setting the row index beyond the number of rows I had.

Anyway the problem I have now is that I set e.Cancel to true but the anchoring operation succeeds. Is there a proper way to cancel the operation other than e.Cancel = true?
  
Back to top
 
IP Logged
 
consolejoker
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 74
Joined: Dec 17th, 2007
Re: ValidateAnchorPoint does not seem to fire
Reply #4 - Jan 1st, 2008 at 8:36pm
Print Post  
It seems to work if I handle OnLinkCreating and set cancel to true.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: ValidateAnchorPoint does not seem to fire
Reply #5 - Jan 2nd, 2008 at 6:49am
Print Post  
The default ConnectionStyle is Rows, so you must assign to either the Table.RowAnchorPattern or Row.AnchorPattern if you need the links to connect to the points you specify. Rejecting all points will just make the link connect to the nearest point from the table border. So you got that right, you must cancel the operation from LinkCreating if you need to prevent the link creation.

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