Multiline text in Visio Shape Data

The Shape Data (nee Custom Properties) dialog and window only provides a single line to view or edit text values. It is a great shame because the value can be up to 64k characters, and long text can be pasted into it. I, and many others, have complained about this for many years to Microsoft, but nothing has been done to rectify this. Of course, I do develop custom user interface components for many customers, but that is not always desirable. Therefore I sometimes re-purpose standard Visio elements to provide the ability to view or edit multi-line text in Shape Data rows.

This slideshow requires JavaScript.

If I have a process flow diagram, for example, I might need to have a description or note Shape Data row. Of course, this value could be long text with line returns, so I will use the ScreenTip (nee Comment) element to view or edit the text.

The following text has been inserted into the Description Shape Data value using the ScreenTip dialog:

The ScreenTip dialog provides the ability to view or edit multi-line text.
The CTRL+Shift key is used to enter a line return.
Unfortunately, it is not rich text, there is no spell-checker, and the dialog cannot be resized, but 64k characters can be entered or viewed.
If the text is longer than the text box then vertical scroll-bars will automatically appear down the right edge.

I made the following edits to the Process master in the Document Stencil, and ticked the Match master by name on drop option.

These are the edits made in the ShapeSheet:

Inserted a Shape Data row name Description

Prop.Description.Label="Description"

Prop.Description.Prompt="View or edit with the Insert/Text/ScreenTip button or the right-mouse menu action"

Prop.Description.Value=SETREF(Comment)

Inserted an Action row named ViewEditDescription

ViewEditDescription.Action=DOCMD(1685)

ViewEditDescription.Menu="View/Edit the Description"

 

That’s all there is to it!

Other relevant articles are:

Narrated Text in Visio for Accessibility

Using #JSON text in #Visio shapes

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

JackBinnall

O365 and SharePoint

Simplify Tasks

Want to learn the simple way?

Paul Turley's SQL Server BI Blog

sharing my experiences with the Microsoft data platform, SQL Server BI, Data Modeling, SSAS Design, Power Pivot, Power BI, SSRS Advanced Design, Power BI, Dashboards & Visualization since 2009

John Goldsmith's visLog

be smart, be clear, be visual ...

Mo's blog

Personal views on Dynamics 365 for Operations and Technical Architecture.

Chris Webb's BI Blog

Microsoft Power BI, Analysis Services, MDX, DAX, M, Power Pivot and Power Query

davecra.wordpress.com/

Azure Solutions for Office 365, and more...

Rob Fahrni

I AM FAHRNI

johnvisiomvp

Life with Visio and other Microsoft Toys!

Nilsandrey's Weblog

Just another WordPress.com weblog

Things that Should be Easy

Every so often (too often in the IT industry) I encounter things that should have been very easy to do but turned out to be far too complicated. My favorite topics include SharePoint, .Net development, and software architecture, especially distributed systems.

Visio Guy

Smart graphics for visual people

%d bloggers like this: