Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Improve draw speed  . (Read 5290 times)
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Improve draw speed  .
Mar 11th, 2009 at 10:52am
Print Post  
Hi guys

I am tryng to draw just a frixed chart as only one paqrent node and 175 child node
every child node is a control host with very small user cntrol

the drawing speed i very bad, it iakes 10m untill finished

how could I improve the speed?
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re:  Improve draw speed  .
Reply #1 - Mar 11th, 2009 at 11:03am
Print Post  
this line takes a lot of time

mainDiagram.Nodes.Add(host);
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re:  Improve draw speed  .
Reply #2 - Mar 11th, 2009 at 11:04am
Print Post  
Hi, Are you running some of the graph layout algorithms, or calling RouteAllLinks()?
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re:  Improve draw speed  .
Reply #3 - Mar 11th, 2009 at 11:07am
Print Post  
Thanks for your replay, but Never I do this

I just work with defaults
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re:  Improve draw speed  .
Reply #4 - Mar 11th, 2009 at 11:38am
Print Post  
Have you enabled the Diagram.RouteLinks property?
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re:  Improve draw speed  .
Reply #5 - Mar 14th, 2009 at 7:13am
Print Post  
RouteLinks  is disabled
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re:  Improve draw speed  .
Reply #6 - Mar 14th, 2009 at 7:38am
Print Post  
Perhaps your user controls are too slow to initialize then. Could you copy here the control code or email it to support@mindfusion.eu?
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re:  Improve draw speed  .
Reply #7 - Mar 14th, 2009 at 7:44am
Print Post  
Dear Stoyo, I do appreciate your help

I sent u the controls, by the email
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re:  Improve draw speed  .
Reply #8 - Mar 14th, 2009 at 7:30pm
Print Post  
I had to replace the NTextBox child controls with TextBox ones, and the ControlNodes loaded for about 10 seconds. Your user controls are not that small anyway: (15 child controls + the parent control) * 175 makes 2800 controls in the diagram, where each control has its own WinForms window. Instead, you should display your data in TableNodes or custom-drawn ShapeNodes, and display the custom control only for editing the nodes content in-place. E.g. you could call DiagramView.BeginEdit from the NodeClicked event handler, and create the user control in response to the CreateEditControl event.

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


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re:  Improve draw speed  .
Reply #9 - Mar 15th, 2009 at 7:06am
Print Post  
Yes I try to load the same number with table , it wotks very fast
but the question now
couul i design the table as html table
means I wnt first row with now coulns but next row with 3 coolumns
could I do that?
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re:  Improve draw speed  .
Reply #10 - Mar 15th, 2009 at 7:46am
Print Post  
i MEANING FREE DESIGN OF THE TABLE
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re:  Improve draw speed  .
Reply #11 - Mar 15th, 2009 at 11:16am
Print Post  
Use the ColumnSpan and RowSpan properties of table cells.

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


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re:  Improve draw speed  .
Reply #12 - Mar 15th, 2009 at 11:19am
Print Post  
nice property ok , I will use it but sorry for disturb you again
now when I make redim or add new row all the data which already in the table removedto the table all the data

I almost finish this task
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re:  Improve draw speed  .
Reply #13 - Mar 15th, 2009 at 11:53am
Print Post  
The Redim method clears all existing data in the table. Use the AddRow or InsertRow methods to preserve the content of existing cells.

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


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re:  Improve draw speed  .
Reply #14 - Mar 15th, 2009 at 11:55am
Print Post  
It works now
Thanks boss
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint