2

When I make a right click in a TMemocomponent the system display a popup menu like this

enter image description here

but when I use a TSynEdit component this popup menu is not shown, the question is exist any way to activate this system popup menu in a TSynEdit component or do I have to implement myself a right-click popup menu for the TSynEdit component to get right-click Cut,Copy,Paste,Delete functionality ?

Salvador
  • 16,132
  • 33
  • 143
  • 245
  • I have never used SynEdit (I have written my own editor control), but the general rule is that you cannot get the Windows standard menu in a custom editor control (without a lot of extra work). – Andreas Rejbrand Jun 25 '11 at 20:05
  • 1
    (One would expect the SynEdit control to be shipped with its own popup menu... Isn't it?) – Andreas Rejbrand Jun 25 '11 at 20:14

1 Answers1

4

The popup menu you're showing is added by Windows itself to Edit controls (TMemo is a wrapper around a multiline Edit control). Since SynEdit isn't based on the Windows Edit control, but is implemented fully itself, Windows doesn't provide that menu.

If SynEdit doesn't provide a popup menu itself, you'll have to implement your own.

Ken White
  • 123,280
  • 14
  • 225
  • 444