Wednesday, March 13, 2013

Extending Scintilla with modifiable ContextMenu

Recently I've been working on using ScintillaNET in I'm Only Resting, namely as the text editor for the Response Body content. An early issue I ran into was that the Scintilla control does not allow access to or modification of the built-in context menu. However I was able to easily extend the Scintilla control with a hand-built ContextMenu that is exactly the same as the one built-in except it can be accessed and modified like any normal .NET control.

The code is as follows:

No comments:

Post a Comment