Author Topic: Can we turn off 'Ctrl + click' in html to view details?  (Read 2004 times)

0 Members and 1 Guest are viewing this topic.

PTHouEMS

  • Newbie
  • *
  • Posts: 2
Can we turn off 'Ctrl + click' in html to view details?
« on: August 31, 2016, 01: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.

Yacine

  • Hero Member
  • *****
  • Posts: 2698
Re: Can we turn off 'Ctrl + click' in html to view details?
« Reply #1 on: August 31, 2016, 04: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.
« Last Edit: August 31, 2016, 05:53:23 PM by Yacine »
Yacine

Hey Ken

  • Full Member
  • ***
  • Posts: 218
  • Just This Guy
    • The Pennsylvania Project, with Ken Krawchuk
Re: Can we turn off 'Ctrl + click' in html to view details?
« Reply #2 on: September 01, 2016, 08:13:56 AM »

   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.

   Good luck!

   - Ken


Ken V. Krawchuk
'caster

The Pennsylvania Project
Radio Podcast

10 to 11 AM Saturdays on WWDB 860 AM in Philadelphia
7 to 8 AM Mondays on KUR 1670 AM in Kutztown
On demand at http://PennsylvaniaProject.com

PTHouEMS

  • Newbie
  • *
  • Posts: 2
Re: Can we turn off 'Ctrl + click' in html to view details?
« Reply #3 on: September 01, 2016, 12: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.

Hey Ken

  • Full Member
  • ***
  • Posts: 218
  • Just This Guy
    • The Pennsylvania Project, with Ken Krawchuk
Re: Can we turn off 'Ctrl + click' in html to view details?
« Reply #4 on: September 02, 2016, 08:24:28 AM »
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.  Maybe John Goldsmith can chime in here, since it was his blog that originally pointed me in the direction I ultimately took.

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

   - Ken

Code

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 "


Ken V. Krawchuk
'caster

The Pennsylvania Project
Radio Podcast

10 to 11 AM Saturdays on WWDB 860 AM in Philadelphia
7 to 8 AM Mondays on KUR 1670 AM in Kutztown
On demand at http://PennsylvaniaProject.com