Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how to layout the shapeNode? (Read 1509 times)
Green
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 21
Joined: Jun 30th, 2011
how to layout the shapeNode?
Oct 24th, 2011 at 3:22am
Print Post  
there is a shapeNode including a image and some text ,I want to the text under the image ? That is the image is the top , the text  below the image ,what can i do?

Thank you !
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to layout the shapeNode?
Reply #1 - Oct 24th, 2011 at 7:40am
Print Post  
If you will be using short labels and images of the same height, you could set ImageAlign to Top, TextFormat.LineAlignment to Far, and set a node size that will fit the image and text.

Otherwise you can define ImageRectangle and text region for your shapes such that the ImageRectangle is at the top and the text region is at the bottom. E.g. adding this xml to the shape library file will allocate the top 3/4 for an image, and the bottom 1/4 for text:

Code
Select All
<image x="0" y="0" width="100" height="75" ... />
<textarea>
  <line dash-style="Custom" width="-1">
<point x="5" y="75" />
<point x="95" y="75" />
  </line>
  <line dash-style="Custom" width="-1">
<point x="95" y="75" />
<point x="95" y="100" />
  </line>
  <line dash-style="Custom" width="-1">
<point x="95" y="100" />
<point x="5" y="100" />
  </line>
  <line dash-style="Custom" width="-1">
<point x="5" y="100" />
<point x="5" y="75" />
  </line>
</textarea> 



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


I love YaBB 1G - SP1!

Posts: 21
Joined: Jun 30th, 2011
Re: how to layout the shapeNode?
Reply #2 - Oct 25th, 2011 at 8:29am
Print Post  
Thabk you!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint