Hello Team,
I have questions concerning the addition of more menu items in the right-click menu of the SE EDITOR:
1- I would like to add a menu group before the "Select All" default item
2- I would like that group to be between 2 horizontal marks just like Undo Redo is.
So far I have the following code snippet created based on another forum :But I cannot find an overload for MenuItems.Add that let's me add a MenuItem array at a specific index (inorder to be able to place it before the "Select All" item menu)+ I could not find how to create new groups of menus that will add my item between 2 horizontal marks.
3- Can you tell me how to capture the events when clicked on an item?
Regards
Nassim
I have questions concerning the addition of more menu items in the right-click menu of the SE EDITOR:
1- I would like to add a menu group before the "Select All" default item
2- I would like that group to be between 2 horizontal marks just like Undo Redo is.
So far I have the following code snippet created based on another forum :
private void STsyntaxEditor_ContextMenuRequested(object sender, ContextMenuRequestEventArgs e)
{
ContextMenu menu = this.STsyntaxEditor.GetDefaultContextMenu();
MenuItem[] mi;
mi = new MenuItem[2] { new MenuItem("Item1"),
new MenuItem("Item2") };
menu.MenuItems.Add("PopUp Dialogs", mi);
menu.Show(this.STsyntaxEditor, e.MenuLocation);
this.STsyntaxEditor.DefaultContextMenuEnabled = false;
}
3- Can you tell me how to capture the events when clicked on an item?
Regards
Nassim