Author Topic: Stop word wrap for small shapes  (Read 18855 times)

0 Members and 1 Guest are viewing this topic.

playinpearls

  • Newbie
  • *
  • Posts: 2
Stop word wrap for small shapes
« on: February 10, 2014, 02: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
« Last Edit: February 10, 2014, 02:17:06 PM by playinpearls »

playinpearls

  • Newbie
  • *
  • Posts: 2
Re: Stop word wrap for small shapes
« Reply #1 on: February 10, 2014, 03: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!

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3377
    • Paul Herber's website
Re: Stop word wrap for small shapes
« Reply #2 on: February 10, 2014, 04: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.
Electronic and Electrical engineering, business and software stencils and applications for Visio -

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

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4878
  • Ideas Visio-lized into solutions
Re: Stop word wrap for small shapes
« Reply #3 on: February 11, 2014, 02: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
Visio 2019 Pro

Jumpy

  • Hero Member
  • *****
  • Posts: 1061
Re: Stop word wrap for small shapes
« Reply #4 on: February 11, 2014, 03: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.

kiler40

  • Sr. Member
  • ****
  • Posts: 329
Re: Stop word wrap for small shapes
« Reply #5 on: February 21, 2014, 09:24:06 AM »
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

  • Hero Member
  • *****
  • Posts: 3234
Re: Stop word wrap for small shapes
« Reply #6 on: February 21, 2014, 01: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/
Yacine

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4878
  • Ideas Visio-lized into solutions
Re: Stop word wrap for small shapes
« Reply #7 on: February 21, 2014, 06: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/.

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

  • Sr. Member
  • ****
  • Posts: 329
Re: Stop word wrap for small shapes
« Reply #8 on: February 22, 2014, 02: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