Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic No aero effect on my custom nodes (Read 1659 times)
Rennie
Full Member
***
Offline


I Love MindFusion!

Posts: 108
Location: Copenhagen, Denmark
Joined: Jul 17th, 2012
No aero effect on my custom nodes
Jun 14th, 2013 at 5:53am
Print Post  
I'm using the aero effect on my composite nodes, and that's working fine. Now I'm trying to also use it for some of my custom nodes that are simply derived from DiagramNode and typically override the Draw() and DrawShadow() methods, and it doesn't work.

Is there some sample program or information indicating what a custom node needs to implement in order to allow the aero effect (or some other effect?) to work?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: No aero effect on my custom nodes
Reply #1 - Jun 14th, 2013 at 7:41am
Print Post  
That's not supported at this time. You could derive from ShapeNode and call base.Draw to render the background effects, and then add any extra drawing code you need on top. Alternatively keep something like 'ShapeNode effectsRenderer' object as member of the form (not necessarily in the diagram), change its Bounds and call its Draw method when drawing custom nodes.

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


I Love MindFusion!

Posts: 108
Location: Copenhagen, Denmark
Joined: Jul 17th, 2012
Re: No aero effect on my custom nodes
Reply #2 - Jun 15th, 2013 at 2:24am
Print Post  
Thanks for your many and helpful and patient replies. I'll see what I can figure out ...
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint