Find Replace

Topics: Developer Forum
May 26, 2009 at 5:46 PM


is it possible to disable the Find Rplace functions and form for the scintilla group, in fact I a want to implement an other form of Find Replace

Thanks in advance.

May 26, 2009 at 6:37 PM
Edited May 26, 2009 at 6:38 PM

What you want to do is disable the command bindings that invoke the default behavior of find, replace, findnext, and incremental search.

scintilla.Commands.RemoveBinding(Keys.F, Keys.Control, BindableCommand.ShowFind);
scintilla.Commands.RemoveBinding(Keys.H, Keys.Control, BindableCommand.ShowReplace);
scintilla.Commands.RemoveBinding(Keys.F3, BindableCommand.FindNext);
scintilla.Commands.RemoveBinding(Keys.F3, Keys.Shift, BindableCommand.FindPrevious);
scintilla.Commands.RemoveBinding(Keys.I, Keys.Control, BindableCommand.IncrementalSearch);

Then it's up to you to handle the keystrokes that invoke your find.

May 27, 2009 at 7:25 AM

My compiler did not recognize " BindableCommand" !!!

May 27, 2009 at 8:19 AM

ooops I found out the problem, I had to write it that way ScintillaNet.BindableCommand.ShowFind, thank you very much for the help.