Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Icons on DiagramLinks (Read 1765 times)
Dominic Hoffmann
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 18
Joined: Mar 19th, 2013
Icons on DiagramLinks
Mar 20th, 2013 at 1:07pm
Print Post  
Hi,

is there a way to display icons left or right from the text assigned to a DiagramLink?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Icons on DiagramLinks
Reply #1 - Mar 20th, 2013 at 1:47pm
Print Post  
Hi,

You can draw an icon from the DrawLink event, but you can't easily find the text position. If you have the source code, you can make the link's "internal TextLayout GetTextLayout" method public, and align the icon according to the layout rectangles returned by GetTextLayout. We'll try to make this public for next release.

Alternatively, you can attach a ShapeNode that displays the required icon and label to the link, using the node.AttachTo(link, AttachToLink.LongestSegment) method.

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


I Love MindFusion!

Posts: 18
Joined: Mar 19th, 2013
Re: Icons on DiagramLinks
Reply #2 - Mar 21st, 2013 at 6:43am
Print Post  
Thank you.
I will have a try with your suggestions.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint