Visio Guy

Visio Discussions => General Visio => Topic started by: PTHouEMS on August 31, 2016, 06:18:35 PM

Title: Can we turn off 'Ctrl + click' in html to view details?
Post by: PTHouEMS on August 31, 2016, 06:18:35 PM
In html, we have data shapes linked to details.  When you hover over the shapes a text pops up saying 'ctrl + click to view details'. Is there anyway to prevent this from popping up? I want to simply have the functionality to just click on the shape to view the details.  I also believe, this is preventing the screen tip from appearing in the html output when you hover over a shape. I am using Visio 2016.
Title: Re: Can we turn off 'Ctrl + click' in html to view details?
Post by: Yacine on August 31, 2016, 09:12:17 PM
There's folder associated with the html file, in it are several javascript files which define the popup behaviour.
I'm myself not good enough at Javascript to tweak them, but that's definitely the place to go.
The modified code can then be used for further exports, by overwriting the files created by visio.
Title: Re: Can we turn off 'Ctrl + click' in html to view details?
Post by: Hey Ken on September 01, 2016, 01:13:56 PM

   Hi, PTHouEMS.  A few years ago I wrestled with various problems with hover text appearing in html built from Visio, and came up with a pretty comprehensive VBA solution that eliminates all the annoying popup/hover behavior.  I don't have V2016, so I can't say it would address your specific problem; but take a look.  It might suggest a direction:  http://visguy.com/vgforum/index.php?topic=2207.msg9805#msg9805 (http://visguy.com/vgforum/index.php?topic=2207.msg9805#msg9805).

   Good luck!

   - Ken


Title: Re: Can we turn off 'Ctrl + click' in html to view details?
Post by: PTHouEMS on September 01, 2016, 05:49:21 PM
Ken,

I've used that code and the problem is that it also removes all zoom functions in the html output.  I want to keep the zoom and have the tooltips (screentips) be the hover text instead of the ctrl+ click hover text.  Hitting dead ends left and right.
Title: Re: Can we turn off 'Ctrl + click' in html to view details?
Post by: Hey Ken on September 02, 2016, 01:24:28 PM
PTHouEMS:

   At the risk of sounding trite, let me suggest you hack at the various SaveAsWeb settings (see below).  Setting PanZoom=True seems to be the obvious first choice. 

   As for what else you could try, I looked around the web, but could not locate a decent summary of what the SaveAsWeb options are, or what they do.  The best I saw was in Microsoft's V2007 SDK (https://msdn.microsoft.com/en-us/library/aa463347(v=office.12).aspx).  Maybe John Goldsmith can chime in here, since it was his blog (http://visualsignals.typepad.co.uk/vislog/2010/03/automating-visios-save-as-web-output.html) that originally pointed me in the direction I ultimately took.

   Good luck!  (And I hope you don't need it.)

   - Ken



Addons("SaveAsWeb").Run _
    " /Target=""" & ExecutableHtml & """" & _
    " /PageTitle=" & BrowserTitle & _
    " /Prop=False " & _
    " /Folder=True " & _
    " /StartPage=-1 " & _
    " /EndPage=-1 " & _
    " /OpenBrowser=false " & _
    " /PriFormat=jpg " & _
    " /ScreenRes=1024x768 " & _
    " /Quiet=true " & _
    " /Silent=false " & _
    " /Search=False " & _
    " /PanZoom=False " & _
    " /NavBar=false "