Visio Guy

Visio Discussions => Shapes & Templates => Topic started by: playinpearls on February 10, 2014, 07:14:47 PM

Title: Stop word wrap for small shapes
Post by: playinpearls on February 10, 2014, 07:14:47 PM
Hi,

I have a small 1/4 inch dot that I need to number regularly. Numbers 1-9 are fine, but when I get into double digits, the shape is too small to hold the number and it word wraps itself into 1 above 0 for 10. I've been unsuccessful at finding a way to turn word wrap off. Any suggestions?

Visio 2013
Title: Re: Stop word wrap for small shapes
Post by: playinpearls on February 10, 2014, 08:06:15 PM
I was able to find a work-around by creating a group stencil with a text box over the dot. Suggestions are still welcome!
Title: Re: Stop word wrap for small shapes
Post by: Paul Herber on February 10, 2014, 09:42:03 PM
You just need to use the Text Block tool.
Select the shape :
Visio 2000 - 2007 - on the toolbars - small black triangle next to the A, click that - Text Blok Took
Visio 2010/13 - it's the A with the circle part way around it.
Title: Re: Stop word wrap for small shapes
Post by: wapperdude on February 11, 2014, 07:50:10 AM
In addition to what Paul indicates, you can also try formatting the text...in V2007, Format>Text>Text Block.  Then set the left, right margins to zero.  That may provide enough room for the text to prevent wrapping.

Wapperdude
Title: Re: Stop word wrap for small shapes
Post by: Jumpy on February 11, 2014, 08:08:22 AM
And last but not least you could place a formula in the FontsSize cell of the shapesheet, that decreases the fontsize slightly it the text is Longer than 1 character.
Title: Re: Stop word wrap for small shapes
Post by: kiler40 on February 21, 2014, 02:24:06 PM
Jumpy, can you please give and example of such formula...
i have this issue for lot of times /and lots of different solutions i have found so far/
but this may be something new for me :)
Title: Re: Stop word wrap for small shapes
Post by: Yacine on February 21, 2014, 06:09:03 PM
Hi Andrei,
from your question I deduce that you have not read this article:
http://www.visguy.com/2009/05/06/top-twelve-text-tips/
Title: Re: Stop word wrap for small shapes
Post by: wapperdude on February 21, 2014, 11:18:27 PM
...adding to Yacine's referenced link, there is another important link within that article, namely, http://www.visguy.com/2007/08/21/text-resizing-with-shapesheet-formulas/ (http://www.visguy.com/2007/08/21/text-resizing-with-shapesheet-formulas/).

Both of articles give valuable insight to resizing text based upon shape size. 

More specifically to your question, you can use the "len" function to determine how many characters are present.  Then, you could use "If" function to determine what size to apply based upon the number of characters.

Something like =If len(text) is less than equal 1, set charsize= 12 pt, else, if len=2, set to  10 pt, etc, etc.

HTH
Wapperdude
Title: Re: Stop word wrap for small shapes
Post by: kiler40 on February 22, 2014, 07:41:31 AM
Yes i have read both articles.
and I know lots of way to change font size. But this "Len" function is a little far from me :) But i`ll look to see it going