Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Text outside ShapeNode Outline (Read 1899 times)
guidonlm
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: May 22nd, 2010
Text outside ShapeNode Outline
May 22nd, 2010 at 5:58pm
Print Post  
I have a set of icons that I load as shapes in a diagram, but the node.text is shown on top of/over the icon. How can I change the text position to be outside the shapenode outline, e.g. below the icon?

Thanks,

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Text outside ShapeNode Outline
Reply #1 - May 22nd, 2010 at 7:30pm
Print Post  
Set the shape's TextArea to a region outside the 0-100 range. Since the BPMN shapes have their text region below the outline, you could copy it from them. E.g. if you are using Rectangle nodes to display the icons, you can set Shapes.Rectangle.TextArea = Shapes.BpmnStartMessage.TextArea.

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


I love YaBB 1G - SP1!

Posts: 4
Joined: Jun 9th, 2010
Re: Text outside ShapeNode Outline
Reply #2 - Jun 14th, 2010 at 10:50pm
Print Post  
This approach causes an exception to be thrown when using a standard layout, such as the topological layout.  Even without the layout, the diagram throws an index-out-of-bounds exception when trying to draw.

I tried assigning to the global Shapes.Rectangle.TextArea, but that didn't do anything.  Then I tried it for an individual shape using myShape.Shape.TextArea and got the exception.

Can you be a bit more specific on the steps to get this to work?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Text outside ShapeNode Outline
Reply #3 - Jun 15th, 2010 at 6:21am
Print Post  
Hi,

Try setting it before the shape is assigned to any nodes, e.g. at the start of the FormLoaded handler.

Otherwise you might have to loop over the nodes and reset their shapes (just set node.Shape = node.Shape) so that the nodes refresh some cached geometry objects they keep for their Shape.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint