Knowledgebase Home Page  >  RapidSpell Desktop .NET  >  3rd Party Ctrls
Search the Knowledge Base
When I use DevExpress context menus the RapidSpellAsYouType context menu is not shown? (C#)
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=115&catId=61

Options

Print this page
Email this to a friend
To cancel the DevExpress CM, attach a handler to XtraBars.QueryShowPopupMenu event, and selectively cancel the DevExpress menu.
 
eg.
 

private void QueryShowPopupMenu(Object sender, DevExpress.XtraBars.QueryShowPopupMenuEventArgs e)

{

 

   

        MenuItems spellingSuggestions = rapidSpellAsYouType.GetSuggestions();

        if(spellingSuggestions != null)//then the user right clicked on an error

       {

            //Create a new CM with the spelling suggestions, and show it

           System.Windows.Forms.ContextMenu  cm = new System.Windows.Forms.ContextMenu(spellingSuggestions);

           cm.Show(textControl, textControl.PointToClient(e.Position));

           

            //cancel the DevExpress menu

           e.Cancel = true;

        }

    

}

If you have any questions please email support@keyoti.com

Related Questions:

Attachments:

No attachments were found.