Author Topic: Can't change shape text size  (Read 9294 times)

0 Members and 1 Guest are viewing this topic.

rickscr

  • Jr. Member
  • **
  • Posts: 29
Can't change shape text size
« on: June 05, 2013, 11:34:38 AM »
I've created a custom stencil, but then I think I messed up a setting in the shapesheet so that I can not longer re-size the shape text using the Text block tool.  I can't figure out what I did.  I can resize the it by entering the shapesheet and changing the TxtWidth row, but need to be able to use the Text block tool.

Can anyone help?

John Distai

  • Jr. Member
  • **
  • Posts: 73
Re: Can't change shape text size
« Reply #1 on: June 05, 2013, 11:45:26 AM »
It resized for me.  I right clicked on the text and resized it using the popup.  Were you doing it some other way?

rickscr

  • Jr. Member
  • **
  • Posts: 29
Re: Can't change shape text size
« Reply #2 on: June 05, 2013, 11:51:35 AM »
I'm trying to change the text block size, not the font size.

Yacine

  • Hero Member
  • *****
  • Posts: 2703
Re: Can't change shape text size
« Reply #3 on: June 05, 2013, 12:34:39 PM »
That's a nice challenging one. I did not find the failure.
Yacine

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3822
  • Ideas Visio-lized into solutions
Re: Can't change shape text size
« Reply #4 on: June 05, 2013, 06:40:11 PM »
In the shapesheet, scroll down to Text Transform section.  The TxtWidth and TxtHeight are slaved to the shape width and height.  That is effectively locking the text box size.

For more on text issues, see http://msdn.microsoft.com/en-us/library/aa200986(v=office.10).aspx.  It's for V2002, but should be valid for present versions.
Visio 2019 Pro

Yacine

  • Hero Member
  • *****
  • Posts: 2703
Re: Can't change shape text size
« Reply #5 on: June 06, 2013, 01:27:28 PM »
Sure, but they are not guarded, thus should respond to manual operation.
Yacine

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3822
  • Ideas Visio-lized into solutions
Re: Can't change shape text size
« Reply #6 on: June 06, 2013, 11:50:49 PM »
Well, that would seem to be the expected behavior, but it's not.  Try removing the formula.  The textbox will resize manually once you do.

Someone with better visibility into Visio workings can explain it, but, the unguarded formula is blocking the manual resize behavior.

This is probably a candidate for SETATREF function.  Yuk.
Visio 2019 Pro

rickscr

  • Jr. Member
  • **
  • Posts: 29
Re: Can't change shape text size
« Reply #7 on: June 14, 2013, 11:49:01 AM »
That didn't seem to work.  I changed the formulas to 1 inch for each and the textbox resized, but it's still locked somehow when using the text block tool.  This is driving me crazy!  I may just have to rebuild the shape.  :(

I'm on Visio 2007, if that makes any difference.
« Last Edit: June 14, 2013, 11:54:02 AM by rickscr »

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3822
  • Ideas Visio-lized into solutions
Re: Can't change shape text size
« Reply #8 on: June 14, 2013, 01:47:41 PM »
I re-tried my steps.  This time, the text box does NOT respond to the text box tool.  Very strange.  It had corrected the 1st time I did this.  Sorry for the misinformation.  (Should've saved that 1st attempt.)

If you put the following formula in the txtwidth box, the box will resize to entered text:  =textwidth(TheText).  To constrain the box width, you could employ the bound functon.

Wapperdude
« Last Edit: June 14, 2013, 02:23:40 PM by wapperdude »
Visio 2019 Pro

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3822
  • Ideas Visio-lized into solutions
Re: Can't change shape text size
« Reply #9 on: June 14, 2013, 02:18:34 PM »
It appears that the shape has some corruption.  I duplicated the shape.  Re-confirmed the text box sizing problem.  Ungrouped.  Deleted existing text box.  Re-grouped.  Created control for positioning text box.  Added text.  The text block tool now functions as expected.

Compared both shapesheets.  Did not see anything unusual in either one, certainly not anything that would prevent textbox from resizing. 

Lacking an explanation, recommend taking the above stated steps.  At least you'll have a shape that works.

Wapperdude
Visio 2019 Pro

rickscr

  • Jr. Member
  • **
  • Posts: 29
Re: Can't change shape text size
« Reply #10 on: June 14, 2013, 02:21:26 PM »
Well, looks like I'll be rebuilding the shape and others with the same problem.

Thanks everyone for your help.

rezingg

  • Jr. Member
  • **
  • Posts: 13
Re: Can't change shape text size
« Reply #11 on: July 01, 2020, 11:43:19 AM »
Even though this thread is many years old, I thought I'd post, as I just ran into the same (or very similar) situation.
I have a text-box of a shape that won't allow me to resize its width, even though there is no GUARD() in place for TxtWidth.
What I found is if TxtLocPinY contained "TxtHeight", I can't resize the text box width. But if I changed that to "TxtHeight*1" then all is fine!
Not intuitive at all, at least not to me. But it made all the difference.
I hope this helps someone.

vojo

  • Hero Member
  • *****
  • Posts: 1513
Re: Can't change shape text size
« Reply #12 on: July 01, 2020, 02:43:46 PM »
textheight just defines a box...nothing to do with text size.

for that, use the fontsize cell in shapesheet.

For kicks...make a box shape...add text....change text size on home menu....text changes box stays the same

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3822
  • Ideas Visio-lized into solutions
Re: Can't change shape text size
« Reply #13 on: July 01, 2020, 05:15:13 PM »
@rezingg:  I created a simple shape, basically, as Vojo describes.  And, that behaves as one would expect.  The width remains constant regardless of how much text is entered.  Visio automatically wraps the text and grows the height.  This is standard behavior.  Note, the actual boundaries defining the shape do not change.  The shape can be manually expanded in width and the wrapping will adjust to new width.

Out of curiosity, I modified the TxtLocPinY cell as per your description.  Had no impact upon behavior.  All above remain unchanged.

So, if the behavior you're seeing doesn't match the above, perhaps you can upload an example.  If otherwise, I couldn't replicate any abnormal behavior.
Visio 2019 Pro

rezingg

  • Jr. Member
  • **
  • Posts: 13
Re: Can't change shape text size
« Reply #14 on: July 02, 2020, 12:23:16 PM »
Ok, try this:
1) draw a rectangle
2) use Text Block tool to verify you can change width of text block manually (text block of rectangle is by default size of the rectangle)
3) open ShapeSheet of rectangle
4) change TxtLocPinY from default "TxtHeight*0.5" to "TxtHeight"
5) use Text Block tool on the rectangle and find that you can not change the width of the text box anymore!
6) go back to ShapeSheet and change TxtLocPinY to "TxtHeight*1"
7) use Text Block tool on the rectangle and find that you now CAN change the width of the text box, thanks to adding "*1"!

I'm on Visio Version 1908.

Edit: it appears interactive text block resizing only works if the TxtLocPinY cell content has the format <SomeVariable>*<number>. Any other cell content causes issues, including a number by itself or multiplied by another number.
« Last Edit: July 02, 2020, 04:16:00 PM by rezingg »