Disable tooltips by code

Started by charlykuntz, November 14, 2012, 10:49:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

charlykuntz

Hi all,

is it possible to disable the Visio tooltips by code. In the options menu of the Visio UI there are settings called "Show Shapes window screen tips" or "Show other screen tips" where I can disable these tooltips. Now I am looking for a way to access these settings by code. Apparently the ApplicationSettings object does not offer to set these values.

Does anybody know a solution?

Regards,

Charly.

aledlund

I'd probably start by just recording a macro when you execute those commands and see what is recorded.
al

charlykuntz

Hi al,

thanks for the advice. Unfortunately these settings were not recorded.

Code (VBA) Select

Sub TooltipDisabling()

    'Enable diagram services
    Dim DiagramServices As Integer
    DiagramServices = ActiveDocument.DiagramServicesEnabled
    ActiveDocument.DiagramServicesEnabled = visServiceVersion140

    'Restore diagram services
    ActiveDocument.DiagramServicesEnabled = DiagramServices

End Sub



Is there settings xml where the Visio settings are stored in?

Paul Herber

Settings made via dialogs like this tend not to be recordable.
Electronic and Electrical engineering, business and software stencils for Visio -

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

charlykuntz

I found a solution but I am not completely satisfied. There is a setting in the Visio UI that indicates whether all settings are stored in the Windows registry. When this setting is checked I am able to read and manipulate these settings in the registry.

But as I said before this can't be best practice. Does anybody know a more elegant solution?

aledlund

#5
Charly,
I just got the feedback I had asked for off-line. The short answer is that you are correct in it is saved in the  registry. Visio reads it when it opens and restores it when it closes. The caution is that nobody should presume that they know the current state of the setup. If you change it, it's your responsibility to restore it so the user doesn't have an issue the next time Visio opens.
al

charlykuntz

Hi al,

thank you. So I will do it that way..

Regards.

Browser ID: smf (is_webkit)
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: 239 (show)
Files included: 34 - 1321KB. (show)
Memory used: 1113KB.
Tokens: post-login.
Cache hits: 12: 0.00209s for 26,583 bytes (show)
Cache misses: 1: (show)
Queries used: 14.

[Show Queries]