On Apr 02, 2007, at 22:38 UTC, Giuseppe Farese wrote: > OK, if the IDE is not using ConstructContextualMenu to display a > Contextual Menu (which is something RS/Aaron have insisted that must > be the way to display Contextual Menus), why should we use > ConstructContextualMenu?
You should use it if you find it useful. If you don't find it useful, you should not use it. If you find something else more useful, then use that instead. It's a fairly new bit of functionality so I haven't used it much, but I'm open to using it in the future if I find it useful. Certainly it's not the only way to pop up a contextual menu though. I'd like to see where RS/Aaron have insisted that we must use one particular approach, because I find that rather odd. (The LR says that it is "recommended" but that's not the same thing.) > I would like to use the same method/event/ > class RB uses, which doesn't expose the bug I reported. I can't find > any other way in the documentation on how to display a contextual > menu. I was sure I saw another way mentioned in the "workaround" section of the bug report. (But I've closed that tab now and no longer have it handy.) Anyway, another way to do it is to create or reference a MenuItem of sub-items, and call MenuItem.Popup on it. You would do this in the MouseDown event, when IsContextualClick is True. (Indeed, that's exactly the example given under IsContextualClick.) Best, - Joe -- Joe Strout -- [EMAIL PROTECTED] Verified Express, LLC "Making the Internet a Better Place" http://www.verex.com/ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
