Where's my text control handle?

Published Aug 26 2018 03:17 AM 5,429 Views
Frequent Visitor

First published on MSDN on Mar, 23 2007

A Visio user posted a question in the newsgroups about the yellow text control handle on connector shapes.  Some connectors have a yellow handle and some don't.  What's going on?

 

Starting in Visio 2003, the built-in connector shape used by the Connector Tool was modified to include a text control handle.  If you start a blank drawing and click on the Connector Tool you should get this version of the shape.  Note that you must enter text on the shape before you see the text control handle.  This shape is named the Dynamic Connector.

There are also a number of Visio stencils with a Dynamic Connector shape such as the one in the Basic Flowchart Shapes.  Unfortunately, many of these shapes were not updated with the new text control handle.  Diagrams created in previous versions of Visio would have connectors that did not have the text control handle either.  Furthermore, once you have any shape named Dynamic Connector in the document, Visio will use that shape for the Connector Tool.

All is not lost!  The text control handle behavior is relatively simple and can be added to any existing shape or master.  Here are the steps.  Go to File > Shapes > Show Document Stencil and double-click on the Dynamic Connector master shape.  Select the connector in the edit window and go to Window > Show Shapesheet.  Then go to Insert > Section and choose the Controls and Text Transform sections if they are enabled.  Click OK.  Now enter formulas in the cells as shown in the screenshot.  The downside of this is that connectors already on the page won't pick up all the behavior because they have some local formulas.

controls section.jpg

 

 

text transform.JPG

But there is an even better solution.  Download the attached Visio document to get a macro that will fix up your masters and shapes automatically.  The macro is designed to work on the active document.  Load the macro document, enable macros if you get a security warning, then switch back to your document and go to Tools > Macro > TextControlHandle > ThisDocument > AddTextControlHandle.  The macro looks for connectors that do not yet have a text control handle and sets one up.  The macro doesn't quite fix everything.  It doesn't dive into groups looking for connectors to fix.  You should now be able to draw with the Connector Tool and get text control handles.  Note that dragging out a Dynamic Connector shape from a stencil will give you the old connector not the new connector, so stick with the Connector Tool.

Thanks for the great newsgroup question!

 

TextContolHandle.vsd

%3CLINGO-SUB%20id%3D%22lingo-sub-237296%22%20slang%3D%22en-US%22%3EWhere's%20my%20text%20control%20handle%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-237296%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3E%20First%20published%20on%20MSDN%20on%20Mar%2C%2023%202007%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EA%20Visio%20user%20posted%20a%20question%20in%20the%20newsgroups%20about%20the%20yellow%20text%20control%20handle%20on%20connector%20shapes.%26nbsp%3B%20Some%20connectors%20have%20a%20yellow%20handle%20and%20some%20don't.%26nbsp%3B%20What's%20going%20on%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EStarting%20in%20Visio%202003%2C%20the%20built-in%26nbsp%3Bconnector%20shape%20used%20by%20the%20Connector%20Tool%20was%20modified%20to%20include%20a%20text%20control%20handle.%26nbsp%3B%20If%20you%20start%20a%20blank%20drawing%20and%20click%20on%20the%20Connector%20Tool%20you%20should%20get%20this%20version%20of%20the%20shape.%26nbsp%3B%20Note%20that%20you%20must%20enter%20text%20on%20the%20shape%20before%20you%20see%20the%20text%20control%20handle.%26nbsp%3B%20This%20shape%20is%20named%20the%20Dynamic%20Connector.%3C%2FP%3E%0A%3CP%3EThere%20are%20also%20a%20number%20of%20Visio%20stencils%20with%20a%20Dynamic%20Connector%20shape%20such%20as%20the%20one%20in%20the%20Basic%20Flowchart%20Shapes.%26nbsp%3B%20Unfortunately%2C%20many%20of%20these%20shapes%20were%20not%20updated%20with%20the%20new%20text%20control%20handle.%26nbsp%3B%26nbsp%3BDiagrams%20created%20in%20previous%20versions%20of%20Visio%20would%20have%20connectors%20that%20did%20not%20have%20the%20text%20control%20handle%20either.%26nbsp%3B%20Furthermore%2C%20once%20you%20have%20any%20shape%20named%20Dynamic%20Connector%20in%20the%20document%2C%20Visio%20will%20use%20that%20shape%20for%20the%20Connector%20Tool.%3C%2FP%3E%0A%3CP%3EAll%20is%20not%20lost!%26nbsp%3B%20The%20text%20control%20handle%20behavior%20is%20relatively%20simple%20and%20can%20be%20added%20to%20any%20existing%20shape%20or%20master.%26nbsp%3B%20Here%20are%20the%20steps.%26nbsp%3B%20Go%20to%20File%20%26gt%3B%20Shapes%20%26gt%3B%20Show%20Document%20Stencil%20and%20double-click%20on%20the%20Dynamic%20Connector%20master%20shape.%26nbsp%3B%20Select%20the%20connector%20in%20the%20edit%20window%20and%20go%20to%20Window%20%26gt%3B%20Show%20Shapesheet.%26nbsp%3B%20Then%20go%20to%20Insert%20%26gt%3B%20Section%20and%20choose%20the%20Controls%20and%20Text%20Transform%26nbsp%3Bsections%20if%20they%20are%20enabled.%26nbsp%3B%20Click%20OK.%26nbsp%3B%20Now%20enter%20formulas%20in%20the%20cells%20as%20shown%20in%20the%20screenshot.%26nbsp%3B%20%3CSPAN%20style%3D%22display%3A%20inline%20!important%3B%20float%3A%20none%3B%20background-color%3A%20%23ffffff%3B%20color%3A%20%23333333%3B%20cursor%3A%20text%3B%20font-family%3A%20inherit%3B%20font-size%3A%2016px%3B%20font-style%3A%20normal%3B%20font-variant%3A%20normal%3B%20font-weight%3A%20300%3B%20letter-spacing%3A%20normal%3B%20line-height%3A%201.7142%3B%20orphans%3A%202%3B%20text-align%3A%20left%3B%20text-decoration%3A%20none%3B%20text-indent%3A%200px%3B%20text-transform%3A%20none%3B%20-webkit-text-stroke-width%3A%200px%3B%20white-space%3A%20normal%3B%20word-spacing%3A%200px%3B%22%3EThe%20downside%20of%20this%20is%20that%20connectors%20already%20on%20the%20page%20won't%20pick%20up%20all%20the%20behavior%20because%20they%20have%20some%20local%20formulas.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F72810iDC3F96D8D6A1738B%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22controls%20section.jpg%22%20title%3D%22controls%20section.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-left%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F72812i941A91BDF95534CA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22text%20transform.JPG%22%20title%3D%22text%20transform.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBut%20there%20is%20an%20even%20better%20solution.%26nbsp%3B%20Download%20the%20attached%20Visio%20document%20to%20get%20a%20macro%20that%20will%20fix%20up%20your%20masters%20and%20shapes%20automatically.%26nbsp%3B%20The%20macro%20is%20designed%20to%20work%20on%20the%20active%20document.%26nbsp%3B%20Load%20the%20macro%20document%2C%20enable%20macros%20if%20you%20get%20a%20security%20warning%2C%20then%20switch%20back%20to%20your%20document%20and%20go%20to%20Tools%20%26gt%3B%20Macro%20%26gt%3B%20TextControlHandle%20%26gt%3B%20ThisDocument%20%26gt%3B%20AddTextControlHandle.%26nbsp%3B%20The%20macro%20looks%20for%20connectors%20that%20do%20not%20yet%20have%20a%20text%20control%20handle%20and%20sets%20one%20up.%26nbsp%3B%20The%20macro%20doesn't%20quite%20fix%20everything.%26nbsp%3B%20It%20doesn't%20dive%20into%20groups%20looking%20for%20connectors%20to%20fix.%26nbsp%3B%20You%20should%20now%20be%20able%20to%20draw%20with%20the%20Connector%20Tool%20and%20get%20text%20control%20handles.%26nbsp%3B%20Note%20that%20dragging%20out%20a%20Dynamic%20Connector%20shape%20from%20a%20stencil%20will%20give%20you%20the%20old%20connector%20not%20the%20new%20connector%2C%20so%20stick%20with%20the%20Connector%20Tool.%3C%2FP%3E%0A%3CP%3EThanks%20for%20the%20great%20newsgroup%20question!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fmsdnshared.blob.core.windows.net%2Fmedia%2FMSDNBlogsFS%2Fprod.evol.blogs.msdn.com%2FCommunityServer.Components.PostAttachments%2F00%2F01%2F93%2F53%2F41%2FTextContolHandle.vsd%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%20TextContolHandle.vsd%20%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-237296%22%20slang%3D%22en-US%22%3E%3CP%3EFirst%20published%20on%20MSDN%20on%20Mar%2C%2023%202007%20A%20Visio%20user%20posted%20a%20question%20in%20the%20newsgroups%20about%20the%20yellow%20text%20control%20handle%20on%20connector%20shapes.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-237296%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eall%20posts%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Egeneral%20usage%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eshape%20design%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Nov 08 2021 04:23 PM
Updated by: