December 1999
Intermediate to advanced
480 pages
11h 5m
English
In many ways, toolbars are highly similar to menus. Figure 19.3 is the object model for the toolbars.

The important distinction to keep in mind here is that the set of IDs used to index ToolBarSets is different than that for MenuSets.
Listing 19.4 is a skeleton code framework for accessing toolbar items:
Public Sub AccessAWeeToolbarItem() Dim UIObj As Visio.UIObject Dim ToolbarSetsObj As Visio.ToolbarSets Dim ToolbarSetObj As Visio.ToolbarSet Dim ToolbarObj As Visio.Toolbar Dim ToolbarItemObj As Visio.ToolbarItem Set ToolbarSetsObj = UIObj.ToolbarSets ... |
Read now
Unlock full access