Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic let User created nodes be shapenodes (Read 3224 times)
Dominic Hoffmann
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 18
Joined: Mar 19th, 2013
let User created nodes be shapenodes
Mar 28th, 2013 at 7:53am
Print Post  
Hi,

how can i manage to let nodes created by the user, look the same like the nodes i created programmatically by diagram.Factory.CreateShapeNode?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: let User created nodes be shapenodes
Reply #1 - Mar 28th, 2013 at 8:14am
Print Post  
Hi,

Copy the code you are using to customize nodes after CreateShapeNode to a method taking ShapeNode parameter, and call it both from InitializeNode/NodeCreated event handler and after CreateShapeNode.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: let User created nodes be shapenodes
Reply #2 - Mar 28th, 2013 at 8:20am
Print Post  
... and set Behavior to LinkShapes or DrawShapes to be sure the user draws ShapeNodes in the first place.
  
Back to top
 
IP Logged
 
Dominic Hoffmann
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 18
Joined: Mar 19th, 2013
Re: let User created nodes be shapenodes
Reply #3 - Mar 28th, 2013 at 8:23am
Print Post  
Hi,

ok, i didn't clearly explain my problem. Sorry.

If i create nodes by CreateShapeNode they get a rounded Shape with Aero and Glass Effect which i have applied to NodesEffect.

But if a user is creating a node, it only appears with a white reactangle shape.

After creating a node programmatically i am not calling any methode which would affect the look and feel of the nodes.

Thanks for your help.
  
Back to top
 
IP Logged
 
Dominic Hoffmann
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 18
Joined: Mar 19th, 2013
Re: let User created nodes be shapenodes
Reply #4 - Mar 28th, 2013 at 8:34am
Print Post  
Stoyo wrote on Mar 28th, 2013 at 8:20am:
... and set Behavior to LinkShapes or DrawShapes to be sure the user draws ShapeNodes in the first place.


ok, i think you posted that, while i was writing my post.
I will have a try, maybe thats the thing i am missing.
  
Back to top
 
IP Logged
 
Dominic Hoffmann
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 18
Joined: Mar 19th, 2013
Re: let User created nodes be shapenodes
Reply #5 - Mar 28th, 2013 at 8:41am
Print Post  
As i thought, thank you.
And the real funny thing (not really Wink ) is, that this missing option has been excactyl the next one in the drop down menu of Behaviour Enum which i already had set *arg*
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint