Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Background color of a custom node (Read 3012 times)
Rennie
Full Member
***
Offline


I Love MindFusion!

Posts: 108
Location: Copenhagen, Denmark
Joined: Jul 17th, 2012
Background color of a custom node
Oct 30th, 2013 at 8:55am
Print Post  
With the WinForms version my custom nodes don't have any background color. All that is visible for the nodes are the things that I render in the Draw() or DrawLocal() method. Can't remember now if I had to do any setup of anything to make it work like that.

On Android the bounds of my custom nodes are shown as a rectangle, a bit darker than the background for the whole diagram. What should I do to avoid that?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Background color of a custom node
Reply #1 - Oct 30th, 2013 at 11:35am
Print Post  
That could be the node's shadow, try adding a no-op drawShadow override:

Code
Select All
@Override
protected void drawShadowLocal(Canvas g, RenderOptions options)
{
} 



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: Background color of a custom node
Reply #2 - Nov 2nd, 2013 at 2:31am
Print Post  
Yes, that fixed the problem. Thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint