News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Show Shape Info in Pop-up Tooltip when Mouse Hovers over Shape

Started by squidwurrd, July 25, 2012, 01:16:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

squidwurrd

I'm trying to make it so that text is displayed when you hover over a shape. For example if I have a server shape and I hover over the shape I'd like to display the sites on that server. Thanks in advanced.

Paul Herber

Where is the list of sites stored?
If data is stored in a Custom Properties (Shape Data) field like Prop.Sites then you'll need to add a reference to the cell(s) in the shape's comment cell. Something like:
=Prop.Sites

Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

squidwurrd

Thanks. That's good to know for the future but I guess I should have said I'm trying to publish this to to web and I noticed a couple of things. When you have a shape that has a text within the shape and you hover over the shape when it is in htm format, the shape will display the text written. When you double click and give a shape some text where is that data coming from on the shape sheet. If I can figure that out I can fill that cell with the list of sites each server has and it will display when you hover over the shape when I publish this to the web.

squidwurrd

I guess my question really boils down to when you double click on an object and add text to that object where is that data stored?

Paul Herber

Text is stored in the shape's text field but this is not visible via the shapesheet editor.
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

aledlund

a couple of points
a.) the mouse over view of a name comes from the 'comments' cell in the miscellaneous part of the shape sheet
b.) the shape I played with had a shapedata property "location" that I thought I would take advantage of and put a site name into it (you can of course create your own custom property and take advantage of datalinking
c.) in the comment field I put "prop.location" (no quote marks)
d.) that allows the location to come up on a mouse over

this is a posting that talks to how to carry this over to the web


I know many people have asked this question, and it has been partially
answered previously. Here is a more complete explanation.

Summary:
You can add the User.visEquivTitle cell to your shape and provide a string
that will display as a tooltip in the web output. The shape must also have
at least one custom property for the tooltip to be visible.

Steps:
1) Select the shape in your drawing that you want to add a web tooltip for
2) Go to Window > Show Shapesheet
3) Go to Insert > Section, check User-defined cells and click OK
4) In the newly created section, click on the row name User.Row_1 to select
the title of the row
5) Type visEquivTitle and press Enter - you should now see
User.visEquivTitle for the row
6) In the Value cell of that row, enter the text you want to display
surrounded by quotes (e.g. "Hello World")
7) If you instead want to display the same tooltip as the Shape ScreenTip
enter =Comment (no quotes)
8) Go to Insert > Section, check Custom properties and click OK
9) You can fill in the custom property Label and Value if you want this
information to be visible
10) If you don't want the custom property to be visible, enter TRUE in the
Invisible cell
11) Close the Shapesheet window and repeat for any other shape you like
12) Choose File > Save as Web Page to create the HTML output

As you can see this is a bit involved. The capability was designed more as
a developer feature than an end user feature. I recommend tying the Shape
ScreenTip to the User cell so that you see the same tooltip in both Visio
and the web output. It should also be possible to use Macro Recorder to
automate these steps. If your shape has a custom property but does not have
the User.visEquivTitle cell, Visio will display the shape's text in a
tooltip instead.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.



hth,
al


JohnGoldsmith

Hi,

You might also be interested in this post (if I've understood your issue correctly):

http://visualsignals.typepad.co.uk/vislog/2009/02/changing-the-save-as-web-tooltip.html

Hope that helps.

Best regards

John
John Goldsmith - Visio MVP
http://visualsignals.typepad.co.uk/

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 255 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1138KB.
Tokens: post-login.
Cache hits: 14: 0.00127s for 26,766 bytes (show)
Cache misses: 3: (show)
Queries used: 15.

[Show Queries]