Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Emulating the link creation interaction (Read 2218 times)
Julien_Dechene
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Jun 20th, 2011
Emulating the link creation interaction
Sep 28th, 2011 at 3:05pm
Print Post  
Hello, I am trying to programmatically trigger the Diagram link creation behavior. So far I tried to set via reflection the properties (interactionStartButton, mousePosition, etc.) needed by the diagram's behavior in order to start the link creation interaction. This is a big hack I know and so far it is not working. I will look into it more thoroughly but I would like to know if it is possible, just so I don't waste my time on this. Thanks !

Julien D
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Emulating the link creation interaction
Reply #1 - Sep 28th, 2011 at 4:22pm
Print Post  
Hi,

Try the DiagramView.StartInteraction method.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Julien_Dechene
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Jun 20th, 2011
Re: Emulating the link creation interaction
Reply #2 - Sep 28th, 2011 at 5:15pm
Print Post  
Yup, that's what I used but I am under the impression that the OnMouseOver of the diagram view overrides the interaction right away. I think I am trying to customize a bit too much. Thanks for the infos though, they are as always much appreciated.
  
Back to top
 
IP Logged
 
Julien_Dechene
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Jun 20th, 2011
Re: Emulating the link creation interaction
Reply #3 - Sep 28th, 2011 at 5:24pm
Print Post  
Oh !!! I was using StartInteraction(Point mousePosition, MouseButtons mouseButton) instead of StartInteraction(InteractionState interactionState, PointF point). With the public StartInteraction (second one) it works almost like I want it to. Thanks a lot Stoyo, you're awesome !!! Grin
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint