Kent,
The basic workflow for handling context menus in Inventor is to listen to
the OnContextMenu event which is available from the UserInputEvents object,
which you get from the CommandManager object. This event is fired just
before any context menu is displayed. The event passes you the context menu
that is about to be displayed as a CommandBar object. You can look at the
contents of the SelectSet to see what the context menu is being displayed
for. If it's an object that your interested in, (in your case a specific
browser node), you can then remove and/or add controls to the command bar.
Once you've finished Inventor will display the modified command bar. If
you've added a button for a command of your own and the user clicks it,
you'll recieve the OnClick event for that command and can do whatever you
want at that point.
In deciding whether to use the standard tree control or the browser tree
depends a lot of your specific application. If the tree is being used to
display data that is not directly represented by graphics in Inventor the I
would lean towards using the standard tree control.
--
Brian Ekins
Developer Technical Services, Autodesk
Discussion Q&A: http://www.autodesk.com/discussion
"Kent Keller" wrote in message
news:404dfe69$1_2@newsprd01...
> I am nearing a point that it would be hard to switch from the MS TreeView
to the built in
> Tree Browser. It would really help to make the decision if I knew what
was involved (or
> if it is even possible) in making node specific context menu's for the
Tree Browser.
>
> Any help greatly appreciated.
>
> --
> Kent
> Autodesk Discussion Group Facilitator
>
>
> "Kent Keller" wrote in message
news:404bdc36_2@newsprd01...
> > In the Tree Browser that was added in R8, is there a easy way to build
> > node specific context menu's? I have only added one item to a context
> > menu before and as I remember it was a bit of a hassle, and we were
> > restricted to our addition being the last item on the menu. Has this
> > changed?
> >
> > --
> > Kent Keller
> > http://www.KWiKMcad.com
> >
> > Autodesk Discussion Group Facilitator
> >
> >
>
>