Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic its little urgent (Read 5199 times)
nick00
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 44
Joined: Nov 7th, 2008
its little urgent
Nov 25th, 2008 at 2:57pm
Print Post  
I am all most there we we need.

but still there are some issues

I am using tree layout like this

Code
Select All
TreeLayout layout = new TreeLayout(root , TreeLayoutType.Centered );
		layout.LinkStyle = TreeLayoutLinkType.Cascading3;

		layout.NodeDistance = 40F;
		layout.KeepRootPosition = true;
		layout.IgnoreLinkDirection = false;
		layout.KeepGroupLayout = true;
		layout.Direction = TreeLayoutDirections.BottomToTop;
		layout.LevelDistance = 25F;
		diagram1.LinkStyle = LinkStyle.Cascading;

		layout.Arrange(diagram1);

		diagram1.ResizeToFitItems(10, true);
		//diagram1.RouteAllLinks();
		diagram1.DynamicLinks = true;
		diagram1.RouteLinks = true;
		diagram1.LaneGrid.AlignCells = true;


		root.Brush = new LinearGradientBrush(Color.White, Color.LightYellow);
		root.Pen.Width = root.Pen.Width + 1; 



besides this for link i am using
Link.TextStyle = LinkTextStyle.OverLongestSegment;    

but some times whenever there is cascade  then link line strikes the link text as shown in the following diagram by using Red Mark

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: its little urgent
Reply #1 - Nov 25th, 2008 at 3:31pm
Print Post  
This probably happens when you have a link higher in the Z order passing over the label. We could add some property to draw the labels last, after all link lines have been rendered.

Stoyan
  
Back to top
 
IP Logged
 
nick00
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 44
Joined: Nov 7th, 2008
Re: its little urgent
Reply #2 - Nov 25th, 2008 at 3:40pm
Print Post  
I need the solution for this today please!!
Cry
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: its little urgent
Reply #3 - Nov 25th, 2008 at 3:56pm
Print Post  
Set TextColor = Transparent, CustomDraw = Additional, and handle DrawLink to custom-draw the text above the link line, so that other links do not cover it. Or draw all labels from the DrawLink event raised for the highest link on the Z order, using the Diagram.Brush as a background for the text; this will ensure that the labels are drawn over the link lines.
  
Back to top
 
IP Logged
 
nick00
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 44
Joined: Nov 7th, 2008
Re: its little urgent
Reply #4 - Nov 25th, 2008 at 4:02pm
Print Post  
thanks for, as you r always great Grin

but would you please provide the sample code, as i really need it, dont have time for testing pleaseeeeeeee

specially for
"draw all labels from the DrawLink event raised for the highest link on the Z order"
how to raise this event
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: its little urgent
Reply #5 - Nov 25th, 2008 at 4:28pm
Print Post  
  
Back to top
 
IP Logged
 
nick00
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 44
Joined: Nov 7th, 2008
Re: its little urgent
Reply #6 - Nov 25th, 2008 at 4:52pm
Print Post  
you r Owsom
Great

Thanks, I dont have words to say thanks Grin
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint