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.
 

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