Tools-> Options->(Tab) General.......(via code)??

C

Crack

I need a routine that will access the Visio environment seetings "zoom on
roll with intellimouse" and "centre selection on zoom".
Due to the nature of the solution, the document, performs better with the
above settings checked.
I would like to fire this routine via Document_DocumentOpened. The settings
can be manually activated via the Tools->options->General tab. Is it possible
to access and check these boxes with code ??? , Is it consistent with Visio
2000, 2002, 2003 ???
 
J

John Marshall, MVP

In Visio 2003, the easiest way to determine what the settings are is to use
the new macro record. The following is the code that was created by
following your request.

Application.Settings.UserName = "John Marshall"
Application.Settings.UserInitials = "JM"
Application.LiveDynamics = True
Application.Settings.ZoomOnRoll = True
Application.Settings.UndoLevels = 20
Application.Settings.RecentFilesListSize = 4
Application.Settings.CenterSelectionOnZoom = True
Application.Settings.ConnectorSplittingEnabled = True

John... Visio MVP

Need stencils or ideas? http://www.mvps.org/visio/3rdparty.htm
Need VBA examples? http://www.mvps.org/visio/VBA.htm
Common Visio Questions http://www.mvps.org/visio/common_questions.htm
 
M

Mark Nelson [MS]

I just want to add that these API properties are new in Visio 2003. For
prior releases, you cannot manipulate the settings programmatically while
Visio is running. However, these settings are stored in the Registry, so it
was possible to change them before Visio is launched.
 

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