Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Adnode did not displayed node (Read 2866 times)
tj
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Jun 28th, 2006
Adnode did not displayed node
Jun 28th, 2006 at 3:04pm
Print Post  
I am evaluate the FC at this time.

The flowchart component is contained in one of  the splitted pane which also a control in a tabpane.

I use the telephony codes and just put  the FC inside the splitted pane. But when I select the icon on the imagelist and then click the FC doc to add the node: the node is not displayed. Thru debugging I see that the FC has the object in its objects collection. 

What change should I make so that the FC shows the added nodes ( The node is an icon with label).
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Adnode did not displayed node
Reply #1 - Jun 28th, 2006 at 3:42pm
Print Post  
Could you scroll around to see if the node isn't placed at another position ? There might be an error in some coordinate conversion code in that example if the flowchart is not at the top-left-most part of the form.

Stoyan
  
Back to top
 
IP Logged
 
tj
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Jun 28th, 2006
Re: Adnode did not displayed node
Reply #2 - Jun 28th, 2006 at 4:14pm
Print Post  
I check and see that all the box has the x and Y in the display range.

The FC dock was set to fill and there is not scrollbar. 

Do I need to do any coordinate conversion before using  the event X&Y??
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Adnode did not displayed node
Reply #3 - Jun 28th, 2006 at 4:48pm
Print Post  
Does the box appear if you create it at point (0, 0) ? What code do you use to create the box ?

Stoyan
  
Back to top
 
IP Logged
 
tj
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Jun 28th, 2006
Re: Adnode did not displayed node
Reply #4 - Jun 28th, 2006 at 7:01pm
Print Post  
Even the first instruction box did not show up.

This code is the same as in telephony except the flowchart is belong to a tabpane and the its dock is set to fill.


private void topology_Load(object sender, System.EventArgs e)
       {
           InitializeComponent2();
           lvTypes.Items[0].Selected = true;
           fcx.DocExtents = new RectangleF(0, 0, 2000, 3000);// pixels
           fcx.ScrollTo(0, 0);

           // show instructions box
           Box ib = new Box(fcx);
           ib.BoundingRect = new RectangleF(10, 10, 250, 50);
           ib.Text = "To create a node, select node type from the list on the right, then " +
               "single-click in the drawing surface on the left.";
           ib.Tag = 42;
           ib.Brush = new MindFusion.FlowChartX.LinearGradientBrush(
               Color.White, Color.Gold, 30);
           fcx.Add(ib);
       }
  
Back to top
 
IP Logged
 
tj
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Jun 28th, 2006
Re: Adnode did not displayed node
Reply #5 - Jun 28th, 2006 at 7:44pm
Print Post  
I did change the x and y to 0 but the FC still did not display the create not. In the debug mode, teh Boxes collection in  the FC has the created boxes.

Any idea?

private void createNode(int type, float x, float y)
       {
           Box atcm = null;
           Table tbl = null;
           Group g = null;

           //Box node = fcx.CreateBox(x - 16, y - 16, 34, 48);
           Box node = fcx.CreateBox(0, 0, 34, 48);
           node.Transparent = true;
           node.EnabledHandles = Handles.Move; // no resizing
           node.Tag = type;
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Adnode did not displayed node
Reply #6 - Jun 29th, 2006 at 4:42am
Print Post  
With Transparent = true only the Image and Text of a box are displayed. Are these properties set anywhere? Could you email me your test project?

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint