Using External UI Files
Now that you are concerned about binding to the application object, let's take a moment to discuss how different bindings work and how you can create, save, and load external interface files.
To create a UI object outside of Visio, use the following:
Dim UIObj As Object Set UIObj = CreateObject("Visio.UIObject")
This creates an EMPTY UIObject. This is a good way to build minimal UIs.
Saving a UI object to a file is accomplished by the following:
UIObj.SaveToFile("c:\visio\solutions\mymenues.vsu")
Loading a UI object from a file is done by
UIObj.LoadFromFile("c:\visio\solutions\mymenues.vsu")
Binding a UI object to the Visio application is done by
AppVisio.CustomToolbarsFile = "c:\visio\solutions\mytools.vsu"
Get Professional Development with Visio® 2000 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.