• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

bVisual

  • Home
  • Services
    • How Visio smartness can help your business
    • Visio visual in Power BI
    • Visio Consulting Services
    • Visio Bureau Services
    • Visio Training and Support Services
  • Products
    • Visio Shape Report Converter
    • SS Plus
    • LayerManager
    • visViewer
    • Metro Icons
    • Rules Tools for Visio
    • The Visio 2010 Sessions App
    • Multi-Language Text for Visio
    • Document Imager for Visio
    • multiSelect for Visio
    • pdSelect for Visio
  • Case Studies
    • Case studies overview
    • Using Visio in Education for GIS
    • Visualizing Construction Project Schedules
    • Visio Online Business Process Mapping
    • Nexans Visio Template
    • CNEE Projects, WorldCom
    • Chase Manhattan Bank
  • News
    • Recent news
    • News archive
  • Resources
    • Articles➡
      • ShapeSheet Functions A-Z
      • Comparing Visio for the Web and Desktop
      • Customising Visio Shapes for the Web App
      • Key differences between the Visio desktop and web apps
      • Using the Visio Data Visualizer in Excel
      • Using Visio in Teams
      • Creating Visio Tabs and Apps for Teams with SharePoint Framework (SPFx)
      • Designing Power Automate Flows with Microsoft Visio
      • Innovative uses of Visio Lists
    • Webcasts ➡
      • Visio in Organizations
      • My session and other Visio sessions at MSIgnite 2019
      • Power up your Visio diagrams
      • Vision up your Visio diagrams
      • The Visio 2010 MVP Sessions
    • Visio Web Learning Resources
    • Books➡
      • Visualize Complex Processes with Microsoft Visio
      • Mastering Data Visualization with Microsoft Visio
      • Microsoft Visio Business Process Diagramming and Validation
      • Visualizing Information with Microsoft Visio
  • Blog
    • Browse blog articles
    • Visio Power BI articles
    • Visio for Web articles
    • A history of messaging and encryption
  • About us
    • About bVisual
    • Testimonials
    • Bio of David Parker
    • Contact Us
    • Website Privacy Policy
    • Website terms and conditions
    • Ariba Network
You are here: Home / Shape Design / Actions / Creating Boolean Context Menus in Visio

Published on March 15, 2026 by David Parker

Creating Boolean Context Menus in Visio

Over the many, many years that I have been creating Microsoft Visio solutions, I have had to create numerous right-mouse context menus for shapes to control their Shape Data values. Over that time, patterns emerge, so this article is highlighting three different appearances for simple Boolean values, otherwise known as True/False or Yes/No values, and even for tristate Yes/No/Maybe. In fact, Visio presents you with Boolean as one of the eight types of data available on the Define Shape Data dialog, but there is no UI for creating accompanying right-mouse context menus except for the ShapeSheet window. However, I will show that using a Fixed List type is often preferable to a simple Boolean type.

The Define Shape Data dialog

The first thing you will notice about a Boolean data type in the Shape Data window is that it is presented with FALSE as the first option in the drop down list, then TRUE. This runs counter to the generally accepted order when speaking but it is because Visio sees 0 (zero) as FALSE and anything else as TRUE, with 1 (one) being the usual value. In fact, you can turn easily change FALSE to TRUE by using the NOT(…) function.

However, some clients prefer to have these options present as Yes/No, or even in a different language, such as Ja/Nein, so in this case I use a Fixed List data type with only two options.

  • Simple boolean menu
  • Boolean with flyout children
  • Boolean with expanded menu

So, the choice of which arrangement to use is down to how explicit you want to be, and how many other items there are on the right mouse menu.

In the ShapeSheet, I always have a User-Defined Cell row to store the index of the Fixed List type Shape Data rows. This value can then easily be used in the Checked column to display a tick if the relevant value is true. In addition, I always try to reference the Shape Data section Label and Format values to display in the Actions section Menu column.

  • ShapeSheet for simple boolean menu
  • ShapeSheet for boolean with flyout children
  • ShapeSheet for boolean expanded menu

The Fixed List approach has another advantage too, because a third option for either None or Maybe can be added, and this can be the default. So, I have included a ? as the first option, which is better than a space because a menu item requires some text. Of course, this cannot be done for actual Visio Boolean type rows.

  • Tristate boolean? with flyout children
  • Tristate boolean? expanded menu

These Maybe options means extra rows in the Actions section of the ShapeSheet, but it has the advantage that a user has to make a positive choice, rather than the accidently leaving a default erroneously.

  • ShapeSheet for tristate boolean? menu with flyout children
  • ShapeSheet for tristate boolean? expanded menu

It should be obvious by now, that a Fixed List can be used more than Boolean values, and the flyout children in the menu is almost always the best approach for longer lists.

Other useful articles

A visual exploration of Penrose Tiling in Visio

Maybe it is because I used to be a building architect, but I have always been fascinated by the relationship between numbers and visualisations. Perhaps the most famous one is the Golden Ratio which has been used as the basis of many building designs and art pieces. It is often recognised to create a harmony…

How SVG in Visio can cause a Shape.BoundingBox(…) error

I have used Visio’s Shape.BoundingBox(…) for many, many years and I cannot ever recall it failing, but I have now managed to create some shapes that cause it to error. This caused many hours of confusion, so I nearly abandoned using the method, until I discussed it with my fellow Visio MVP, John Goldsmith (see…

Jumping between Shapes in Visio

Many Visio diagrams get quite large, and sometimes it is useful to provide the ability to jump to another shape quickly in the same document, either on a different page or on the same one. Although there is an add-on provided in desktop Visio that is used by the Off-Page Reference shape provided in the…

Fixing dimensions of 2D shapes

I am often asked what makes Visio unique and makes it stand out from the crowd, especially in today’s online world. Well, I think there are many reasons, but one of them is the ability to create scaled drawings with parametric components of specific dimensions. This was crucial for my adoption of Visio back in…

Smart Radio Buttons and Check Boxes in Visio

A recent project requires an interactive tutorial within Microsoft Visio desktop where a lot of the questions need a single answer using radio buttons, or multiple-choice answers using check boxes. I thought that this would be a great use of the list containers capability because the questions and answers could be part of the container…

Using Button Face Ids in Visio

Microsoft Visio desktop has the ability to display icons from a built-in list of Office icons on Actions and Action Tags (nee Smart Tags). These can be set in the ShapeSheet by using the desired number from several thousand in the ButtonFace cell. Although there is the ability to add better icons using code, the…

Related

Filed Under: Actions, Shape Data, ShapeSheet Formulas, Visio Tagged With: Actions, Shape Data, ShapeSheet, User-defined Cells

About David Parker

David Parker has 30 years' experience of providing data visualization solutions to companies around the globe. He is a Microsoft MVP and Visio expert.

Primary Sidebar

  • LinkedIn
  • Twitter

Recent Posts

  • Creating Boolean Context Menus in Visio
  • Installing Visio Templates and Stencils
  • Creating a Dynamic connector master automatically
  • A visual exploration of Penrose Tiling in Visio
  • How SVG in Visio can cause a Shape.BoundingBox(…) error

Categories

Tags

Accessibility Add-Ins AdvancedInstaller Connectors Containers Data Export Data Graphics Data Import Data Visualizer Educational Excel GraphDatabase Hyperlinks Icon Sets JavaScript LayerManager Layers Legend Link Data to Shapes MSIgnite Office365 Org Chart PowerApps PowerBI PowerQuery Processes Setup and Deployment Shape Data Shape Design ShapeSheet ShapeSheet Functions SharePoint 2013 SQL Teams Validation VBA Video Visio Visio 2007 Visio for the desktop Visio for the Web Visio Online Visio Services Visio Viewer Webinar

Footer

bVisual Profile

The UK-based independent Visio consultancy with a worldwide reach. We have over 25 years experience of providing data visualization solutions to companies around the globe.

Learn more about bVisual

  • Amazon
  • E-mail
  • Facebook
  • LinkedIn
  • Twitter
  • YouTube

Search this website

Recent posts

  • Creating Boolean Context Menus in Visio
  • Installing Visio Templates and Stencils
  • Creating a Dynamic connector master automatically
  • A visual exploration of Penrose Tiling in Visio
  • How SVG in Visio can cause a Shape.BoundingBox(…) error

Copyright © 2026 · Executive Pro on Genesis Framework · WordPress · Log in