Modify selection of masters in stencil?

G

Gilgil0886

Hi!
I have a C# application hosting a Visio ActiveX control. The
application enables the user to create new masters (programatically).
However, when a new master is created (using Stencil.Drop()), it gets
selected, in addition to the already selected masters.
I know I can get the currently selected masters list from the windows
of the stencil, but is there a way to modify this selection?

Thanks,
Gil
 
J

JuneTheSecond

This is the same case in VBA and Visual Basic for Visio proper.
DeselectAll method applied to the stencil window could remove the selection.
In VBA this window could be got by Application.Windows(1).Windows(3).
These number might vary, and ItemFromID property may not be used in other
language than VBA.
 
J

JuneTheSecond

I've made mistake in ItemFromID. ItemFromID can be used in Visual basic also.
 
Top