Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic multiline styled text (Read 3958 times)
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
multiline styled text
Feb 8th, 2010 at 8:24pm
Print Post  
Is styled text only compatible with the fit poly styles and not with the multiline styles? It would be nice to have multiline text that supports formatting.
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: multiline styled text
Reply #1 - Feb 9th, 2010 at 9:44am
Print Post  
Yes, styled text drawing builds upon the text formatter we developed for the fit-polygon styles. The tsFitPoly styles are multi-line too, e.g. this displays two lines:

Code
Select All
b1.Style = bsShape
b1.Shape = fcx.Shapes("Decision")
b1.TextStyle = tsFitPolyCenter
b1.EnableStyledText = True
b1.Text = "<u>line 1</u>" + vbNewLine + "<b>line 2</b>" 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: multiline styled text
Reply #2 - Feb 9th, 2010 at 1:37pm
Print Post  
ah, so i have to do the line breaks myself; there's no way to enlist flowchartx's automatic line breaks ala ML styles.
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: multiline styled text
Reply #3 - Feb 9th, 2010 at 1:52pm
Print Post  
The control does break long lines of styled text, but I think it does that only at white-space symbols. You might have to add new-line or space symbols if you want to display some long sequences that do not include white space.
  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: multiline styled text
Reply #4 - Feb 9th, 2010 at 6:45pm
Print Post  
i'm confused then; if the tsFitPoly* styles break text at whitespace symbols, why are there the ts*ML styles at all?
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: multiline styled text
Reply #5 - Feb 9th, 2010 at 7:10pm
Print Post  
Smiley Perhaps for historic reasons; they were there much before the FitPoly styles. Also the ML styles correspond to a single call to the DrawText Windows API function, while the FitPoly formatter parses strings, lays them out inside the shapes geometry, etc. So the ML styles are more lightweight and you might prefer them if the diagram contains much text. Also the ML styles let you align text horizontally, while the poly styles are always centered.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint