Le 3 avr. 07 à 00:46 Matin, Dennis Birch a écrit: > On 4/2/07, Giuseppe Farese <[EMAIL PROTECTED]> 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? 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. The ContextualMenu control had been deprecated. > > That's pretty simple to do by working with the MenuItem class. Create > a menu as MenuItem, then append menuitems to it. Use the > MenuItem.Popup method to show the method, which returns a MenuItem. > You can use its .Text property to find out which item the user > selected from your Contextual menu.
You may also use the Tag property when the text is not reliable (e.g: "Choose font for selection" becomes "Choose font for text" when there is no selected text, but you want to use only a single if). _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
