Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic 4) Display text at inside and outside of node. (Read 1847 times)
Shafi
Full Member
***
Offline


I Love MindFusion!

Posts: 109
Joined: Nov 8th, 2016
4) Display text at inside and outside of node.
Dec 27th, 2017 at 6:54am
Print Post  
We need to create node in such way that, User should able put text inside and outside node with any alignment (left\top\right\bottom) etc. It could be different text at inside and outside.
  

Image2.png (Attachment deleted)
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3435
Joined: Oct 19th, 2005
Re: 4) Display text at inside and outside of node.
Reply #1 - Dec 27th, 2017 at 8:15am
Print Post  
You could make each extra label a separate ShapeNode and attach it to main node using attachTo method. Apply usual text formatting properties for alignments, fonts, etc. Set Transparent to true to hide geometry and possibly Locked to prevent users from moving the labels. For a more lightweight solution, override updateCanvasElements and add more MindFusion.Drawing.Text objects to a ShapeNode, or use CompositeNodes with multiple Text components.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint