Hiding shape on double click or right click

T

tashnicole

What I would like to do is this. I have a shape and then a callout to
show the custom properties. I want to be able to right click on the
shape and choose to either hide or show the callout depending on what
choice I pick. I know there's got to be some way I can do it in the
shapesheet, but I'm just not exactly sure HOW to do it.
 
C

Chris Roth [MVP]

Hi tashnicole!

I've published an article about all the ways to hide shapes and parts of
shapes: The Hidden World of Visio Shapes, located here:
http://www.visguy.com/2006/09/05/the-hidden-world-of-visio-shapes/. This
will show you the elemental ways of showing and hiding shapes.

You'll need a cross-sheet reference from the callout to the shape, so that
the callout can read the show/hide value.

For example, in your regular shape:

User.isHidden = 0 (or 1)
Actions.Action = SETF( GetRef(User.isHidden), NOT(User.IsHidden) )

Your right-click will activate the Actions.Action cell, which will toggle
the value in User.isHidden

In the callout shape, you might go to the Geometry1.NoShow cell (and others
and enter this formula:

Geometry1.NoShow = Sheet.8!User.isHidden

Where Sheet.8 is the id of your "regular shape". You can get IDs by
selecting a shape, then choosing Format > Special. The ID is at the top of
the dialog.

--
Hope this helps,

Chris Roth
Visio MVP

Free Visio shapes:
http://www.visguy.com/category/shapes
Visio programming info:
http://www.visguy.com/category/programming/
Other Visio resources:
http://www.visguy.com/visio-links/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top