Does Visio Support Mouseover/Onclick Event Handlers?

R

R Tanner

Hi,

I am thinking about building a visio diagram for a project I am
working on but there are two additional functionalities I would like
to include...

1. I want the user to be able to some how view data related to a
textbox on the page. So I was thinking if they mouse over the
textbox, they would get a userform with a label containing the text.
There would be a close button that would hide the userform.

2. The other functionality I wanted to incorporate is the ability to
let the user click on a textbox and direct them to another page in the
same project. Is this possible?

Thanks for your input. FYI I'm not that familiar with Visio, but I am
pretty good with coding...
 
A

AlEdlund

for 'mouseover' check visio help for "comment", you can include comments
with shapes.
for linking to other places (internal to document, other documents, etc.)
check out hyperlinks.
al
 
C

Chris Roth [Visio MVP]

Hi R,

Visio has events for MouseMove, MouseDown, MouseUp. It's not as easy as
in a windows form, because you still have to determine if the mouse
action occurred over a shape. So there's a bit of extra work involved.

Also, you could have lots of shapes stacked on top of each other, so
more to think about. But it is possible!

Visio shapes support multiple hyperlinks, which can target internet
urls, other documents, or pages within the same document. These
hyperlinks (unfortunately) are activated by right-clicking as opposed to
nice underlined-text and single-clicking.

However, there are ShapeSheet functions for following hyperlink
addresses, so you could configure a shape to jump to a link on
double-click without any coding--just some formula-entry in the
ShapeSheet (a spreadsheet-like interface that sits behind every Visio shape)

--
Hope this helps,

Chris Roth
Visio MVP


Visio Guy: Smart Graphics for Visual People

Articles: http://www.visguy.com
Shapes: http://www.visguy.com/shapes
Dev: http://www.visguy.com/category/development/
Forum: http://www.viguy.com/vgforum
 
R

R Tanner

Hi R,

Visio has events for MouseMove, MouseDown, MouseUp. It's not as easy as
in a windows form, because you still have to determine if the mouse
action occurred over a shape. So there's a bit of extra work involved.

Also, you could have lots of shapes stacked on top of each other, so
more to think about. But it is possible!

Visio shapes support multiple hyperlinks, which can target internet
urls, other documents, or pages within the same document. These
hyperlinks (unfortunately) are activated by right-clicking as opposed to
nice underlined-text and single-clicking.

However, there are ShapeSheet functions for following hyperlink
addresses, so you could configure a shape to jump to a link on
double-click without any coding--just some formula-entry in the
ShapeSheet (a spreadsheet-like interface that sits behind every Visio shape)

--
Hope this helps,

Chris Roth
Visio MVP

Visio Guy: Smart Graphics for Visual People

  Articles:http://www.visguy.com
  Shapes:  http://www.visguy.com/shapes
  Dev:      http://www.visguy.com/category/development/
  Forum:    http://www.viguy.com/vgforum









- Show quoted text -

Thank you for the input...I will take it and run with it...:)
 
S

Senaj Lelic [DE MVP Visio]

there is an easy combination:
in the mouseMOve event do a SpatialSearch for the current position - this
would return you in the positive case the shape the mouse is currently over.
Bear in mind that this could impose a performance issue - but i have this
working nicely in a solution
 

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