Discussion:
ScintillaNET and shortcuts
Metzger Michel
2004-05-11 15:56:18 UTC
Permalink
Hi,

I don't if it's the right place to ask, but I have a question about
ScintillaNET.
The version I use is from http://sourceforge.net/projects/scide/.

I want to use ctrl+space to autocomplete an expression (as in Visual
Studio).
I tried to catch the KeyDown event, it doesn't work, even if I call

editor.AddIgnoredKey(Keys.Space, Keys.Control);


And the Scintilla Key event is not used by the windows version.

And when I hit a key with the control modifier, it inserts the control
caracter (ascii code < 32).
ScNotepad has the same behavior.

By the way, Garrett announced a new .NET version last week, is there a
cvs version online ?

Thanks,

Michel
mjm
2004-05-11 17:35:28 UTC
Permalink
Post by Metzger Michel
I don't if it's the right place to ask, but I have a question about
ScintillaNET.
The version I use is from http://sourceforge.net/projects/scide/.
I want to use ctrl+space to autocomplete an expression (as in Visual
Studio).
I tried to catch the KeyDown event, it doesn't work, even if I call
editor.AddIgnoredKey(Keys.Space, Keys.Control);
And the Scintilla Key event is not used by the windows version.
And when I hit a key with the control modifier, it inserts the control
caracter (ascii code < 32).
ScNotepad has the same behavior.
By the way, Garrett announced a new .NET version last week, is there a
cvs version online ?
I had difficulties with it as wel, and didn't figure out where it is going wrong.
right now I am keeping "reserved" shortcuts in a list and applying it like:

for (int i = 0; i < DaddyForm.reserved_shortcuts.Count; i++)
{
Shortcut shortcut = (Shortcut) DaddyForm.reserved_shortcuts[i];
this.document.AddIgnoredKey(shortcut);
}
Note however, that if you try to add shortcut that's already assigned, you'll get an exception

hth,
-j
Garrett Serack
2004-05-11 18:55:27 UTC
Permalink
Post by Metzger Michel
ScintillaNET.
The version I use is from >http://sourceforge.net/projects/scide/.
I want to use ctrl+space to autocomplete an expression (as in Visual Studio).
I tried to catch the KeyDown event, it doesn't work, even if I call
editor.AddIgnoredKey(Keys.Space, Keys.Control);
And the Scintilla Key event is not used by the windows version.
And when I hit a key with the control modifier, it inserts the control
caracter (ascii code < 32).
ScNotepad has the same behavior.
Hmmm. I didn't debug that code all that thourougly when I
wrote it. I'll have to look at it in the new version.
Post by Metzger Michel
By the way, Garrett announced a new .NET version last week, is there a
cvs version online ?
Not yet... The Text handling between .NET in C# and the
native control is proving to be a hassle. That and there
was a Hockey Game Sunday afternoon I had to watch, and
another tonight. (GO FLAMES GO!), so I won't get back to
it for another day or so.

Garrett

Loading...