News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Stop word wrap for small shapes

Started by playinpearls, February 10, 2014, 07:14:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

playinpearls

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

playinpearls

I was able to find a work-around by creating a group stencil with a text box over the dot. Suggestions are still welcome!

Paul Herber

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.
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

wapperdude

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
Visio 2019 Pro

Jumpy

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.

kiler40

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 :)

Yacine

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/
Yacine

wapperdude

...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/.

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
Visio 2019 Pro

kiler40

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

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 299 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1169KB.
Tokens: post-login.
Cache hits: 13: 0.00104s for 26,766 bytes (show)
Cache misses: 2: (show)
Queries used: 16.

[Show Queries]