Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic POsitioning the text of diagramLink (Read 3099 times)
dev
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Sep 28th, 2010
POsitioning the text of diagramLink
Jan 27th, 2011 at 1:44pm
Print Post  
Hi,

When the Digramlink is vertical the link text overlaps on to the link line. Now i need to place it beside the link so that it doesn't overlap and on move of connection or node the text should move so that its centered to the link and not overlapping. How can i achieve this.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: POsitioning the text of diagramLink
Reply #1 - Jan 27th, 2011 at 3:09pm
Print Post  
Hi,

Check if some of the LinkTextStyle enum values you can assign to link.TextStyle will work for you. If the built-in styles won't do, you can custom draw the link's label by setting the CustomDraw property and handling the DrawLink event.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
dev
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 7
Joined: Sep 28th, 2010
Re: POsitioning the text of diagramLink
Reply #2 - Jan 27th, 2011 at 3:55pm
Print Post  
Thanks for your quick reply. when LinkTextStyle.Rotate the text wont overlap on the link line but the text is getting rotated.How can i avoid that behaviour.

i am expecting something as below:
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: POsitioning the text of diagramLink
Reply #3 - Jan 27th, 2011 at 4:54pm
Print Post  
Haven't we discussed this before?
http://mindfusion.eu/Forum/YaBB.pl?board=wpfdg_disc;action=display;num=128834963...

You can modify that code to draw the text either above or on the left of the middle segment, depending on whether the segment end points X or Y coordinates are equal.

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