ItemAtID returns wrong context set?

W

Walter Quirtmair

Hi,
I'm creating custom Menus and Items for Visio 2003 and use the UIObject
model to do so.
When adding new items to the NoDocument context set, I first get that set
with a call to

menuSet = menus.get_ItemAtID( (int)visUIObjSetNoDocument );

I checked menuSet.SetID which is then 2. But thats in fact the context
visUIObjSetDrawing whereas visUIObjSetNoDocument is 1.

So I guess ItemAtID returns the wrong context set. This is also visible as
the NoDocument - menus never become visible.

What can be the reason for this?
Is this a bug in ItemAtID ?

Thanks for any hint!
Walter
 
J

JuneTheSecond

MenuSet might not be a a member of Menus, but a member of MenuSets.
You might find an example in MenuSets prperty in Visio help for developer.
 

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