Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Horizontal text alignment (Read 2262 times)
nezzy
YaBB Newbies
*
Offline



Posts: 25
Joined: May 31st, 2010
Horizontal text alignment
Oct 12th, 2010 at 12:03pm
Print Post  
Hi.
I create a shapenode, and sets the HorizontalTextBlockAlignment to left. When I add text to the shapenode it looks ok. The text starts at the left side of the node. When I save it to xml with SaveToXml("myNewDiagram.xml"), no errors.
I then use the LoadFromXml("myNewDiagram.xml"), no errors. But now the text is aligned central. For my custom created node's it works fine, but for shapenode's it's not working.
Any ideas?
best regards
Anders
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Horizontal text alignment
Reply #1 - Oct 12th, 2010 at 2:51pm
Print Post  
It looks like a bug, the alignment properties are never saved at all. We'll try to fix that for the 1.8 release.

Stoyan
  
Back to top
 
IP Logged
 
nezzy
YaBB Newbies
*
Offline



Posts: 25
Joined: May 31st, 2010
Re: Horizontal text alignment
Reply #2 - Oct 13th, 2010 at 6:25am
Print Post  
Ok.
Thanks.
/
Anders
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Horizontal text alignment
Reply #3 - Oct 15th, 2010 at 7:28am
Print Post  
Hi Anders,

Actually you are supposed to set text alignment via the TextFormat property. The rest were added when we introduced templating support, only to allow mapping TextFormat to something easier to bind to from node templates. V1.8 will serialize them too anyway, but for now you can set TextFormat instead of the individual properties to have working serialization.

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