Menu items don't start properly

G

Gerald K

Hi - I'm having a problem with the menu items I've added to a document. The
menu items are used to create various views of the info in the current
document.

I call a module from ThisDocument to create the menu items:
Private Sub Document_DocumentOpened(ByVal doc As IVDocument)
CreateMenuItems
End Sub

However, the items only appear greyed out, and the item that brings the user
back to the initial document view, doesn't show at all. I have to manually
run the CreateMenuItems module after the document opens in order for the menu
items to function properly.
Is this because the document hasn't fully opened when this call is made -
and thus has no reference to the shapes on the document? If so, is there some
way I can call the module after the document has fully opened? Or, is there
another reason for this?

Cheers, Gerald.
 
J

junethesecond

did you do unit test for the CreateMenuItems itself?
my test was good with "AddAt_Example", sample
found at the HELP document of "AddAt".
 

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