Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how can I set the grid for diagram (Read 2840 times)
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
how can I set the grid for diagram
Apr 18th, 2009 at 8:31am
Print Post  
how can I set the grid for diagram
I tried this code but it did not work

  mdiagram.GridStyle = GridStyle.Lines
       mdiagram.AlignToGrid = True
       mdiagram.GridSizeX = 50
       mdiagram.GridSizeY = 50
       mdiagram.ShowGrid = True
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how can I set the grid for diagram
Reply #1 - Apr 20th, 2009 at 5:29am
Print Post  
Are you calling LoadFromXml or LoadFromFile at some point after this? This could hide the grid if the file was saved with ShowGrid = false.

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: how can I set the grid for diagram
Reply #2 - Apr 20th, 2009 at 6:36am
Print Post  
I am working with
LoadFromFile
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re: how can I set the grid for diagram
Reply #3 - Apr 20th, 2009 at 6:40am
Print Post  
I search in the xml file
I found this

<ShowGrid>True</ShowGrid>


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how can I set the grid for diagram
Reply #4 - Apr 20th, 2009 at 10:47am
Print Post  
What happens if you set diagram.ShowGrid = true after calling LoadFromFile?
  
Back to top
 
IP Logged
 
Hamdy Ghanem
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 110
Location: Egypt
Joined: Mar 11th, 2009
Re: how can I set the grid for diagram
Reply #5 - Apr 20th, 2009 at 1:12pm
Print Post  
nothing happen
diagram is the same
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how can I set the grid for diagram
Reply #6 - Apr 20th, 2009 at 6:25pm
Print Post  
Perhaps there is some large background node that hides the grid? If so, try setting its Brush to one with a semi-transparent color. Also check if the GridColor is different from the BackBrush color.

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