-
Hi, I have implemented this and its very nice. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, Just need to assign the new ContextMenuStrip to the Scintilla: scintilla.ContextMenuStrip = contextMenuStrip1; The menu strip in the designer: The code in the ScriptNotepad has an implementation (just scratch the excess stuff): https://github.com/VPKSoft/ScriptNotepad/blob/master/ScriptNotepad/UtilityClasses/ScintillaNETUtils/ScintillaContextMenu.cs |
Beta Was this translation helpful? Give feedback.
-
I did ended up created my own ContextMenuStrip. |
Beta Was this translation helpful? Give feedback.
Hi,
Only way I know is to replace the default menu with a new context menu and re-implement the default functionality to a new custom ContextMenuStrip and add the additional menu items there.
Just need to assign the new ContextMenuStrip to the Scintilla:
The menu strip in the designer:
The code in the ScriptNotepad has an implementation (just scratch the excess stuff): https://github.com/VPKSoft/ScriptNotepad/blob/master/ScriptNotepad/UtilityClasses/ScintillaNETUtils/ScintillaContextMenu.cs