Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Background color of ControlNode (Read 1285 times)
Mettler
YaBB Newbies
*
Offline



Posts: 1
Joined: Jul 30th, 2008
Background color of ControlNode
Jul 30th, 2008 at 2:49pm
Print Post  
Hi

I'm using FlowChart.Net 5.x in our project since two weeks. I'm using the ControlNode class in which I host a simple UserControl (contains a TableLayout, a PictureBox and two Labels). The background color of all Controls in the UserControl and the one of the UserControl itself is Set to System.Drawing.Color.Transparent.

I add the ControlNodes to the diagram this way:

Code
Select All
ControlNode node = new ControlNode(this.diagram);
node.ControlMouseAction = ControlMouseAction.SelectNode;
this.diagram.Nodes.Add(node);
TestControl deviceView = new TestControl();

node.Control = deviceView; 



The background colour of the diagram is set to White.

Unfortunately the Nodes background is painted in Gray instead White as I expected. Any ideas?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Background color of ControlNode
Reply #1 - Jul 30th, 2008 at 4:57pm
Print Post  
Hi,

This could be the shadow color. Set ShadowsStyle = None to disable all shadows, or set ControlNode.ShadowColor = Transparent if you want to hide the shadows of particular nodes.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint