Skip to content

Add custom buttons to the right-click menu #67

Closed Answered by VPKSoft
minihopp asked this question in Q&A
Discussion options

You must be logged in to vote

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:

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by minihopp
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants