Right Click Copy/Paste + Spelling Menu

How can I get a menu with both spell checking and copy/paste functionality?

By default a TextArea has a nice built in spell checker on right click.

Screenshot 2023-03-29 at 4.12.36 PM

But my users also want to see the standard Windows Copy/Paste menu.

Screenshot 2023-03-29 at 4.08.57 PM

Any possible way to combine them?

FYI, I currently implement the standard menu by in a TextArea, cloning the Edit menu and removing any extra menus

Function ConstructContextualMenu(base as MenuItem, x as Integer, y as Integer) Handles ConstructContextualMenu as Boolean
  #If TargetWindows
    Var m As MenuItem
    m = EditMenu.Clone
    
    If m = Nil Then Return False
    
    For i As Integer = m.count-1 DownTo 8
      m.RemoveMenuAt(i)
    Next
    
    Call m.PopUp()
    
    Return True
  #EndIf
  
 
End Function

MBS added a spelling class for windows recently that you could call yourself and build your own menu.

There is no way to add to or reuse default contextual menu

I reported it as a bug for you as I was in there reporting other bugs relating to spell checking:

#72295 - Standard context menu functionality is missing if spell checking is turned on

2 Likes

Thank you!