How to tell position of item in menubar?

How to tell position of item in menubar?

Anonymous
Not applicable
225 Views
2 Replies
Message 1 of 3

How to tell position of item in menubar?

Anonymous
Not applicable
I cannot seem to find anything in the object model saying the position of a pulldown menu in the menubar.
Hopefully I just missed it.
I want to loop through all menus and make a list, in order, of the pulldowns shown.
At first I thought it might be the order of the popupmenus collection, but there is one per menu so that doesn't work...
thanks
James Maeding
Civil Engineer/Programmer
0 Likes
226 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Dim oPop As AcadPopupMenu
For Each oPop In Application.MenuBar
Debug.Print oPop.NameNoMnemonic
Next

--
Rune Wold
Take the dog for a walk to reply

--
"James Maeding" wrote in message
news:h11cqvgntthklmq1g64llt5680jcinengc@4ax.com...
> I cannot seem to find anything in the object model saying the position of
a pulldown menu in the menubar.
> Hopefully I just missed it.
> I want to loop through all menus and make a list, in order, of the
pulldowns shown.
> At first I thought it might be the order of the popupmenus collection, but
there is one per menu so that doesn't work...
> thanks
> James Maeding
> Civil Engineer/Programmer
0 Likes
Message 3 of 3

Anonymous
Not applicable
oh, too easy.
I was blind to the menubar item for some reason, I was looking in the menugroups area....
thanks

"Rune Wold"
|>Dim oPop As AcadPopupMenu
|>For Each oPop In Application.MenuBar
|> Debug.Print oPop.NameNoMnemonic
|>Next
|>
|>--
|>Rune Wold
|>Take the dog for a walk to reply

James Maeding
Civil Engineer/Programmer
0 Likes