Hi All
I am writing a C# wrapper for Scintilla (I know about ScintillaNET but
it doesn't expose everything I need) and everything is working well,
except that for some reason the control ignores arrow keys without
modifiers. That is, Ctrl-LeftArrow etc works fine by skipping back a
word, but just hitting LeftArrow just does nothing.
I am creating the control as follows:
hwnd = Win32.CreateWindowEx(0,
"Scintilla",
"",
Win32.WS_CHILD | Win32.WS_VISIBLE | Win32.WS_TABSTOP |
Win32.WS_CLIPCHILDREN,
0, 0,
100, 100,
this.Handle,
IntPtr.Zero,
IntPtr.Zero,
IntPtr.Zero
);
This is what I want, but I have found that if I remove the WS_CHILD
modifier, then the arrow keys work fine. For some reason, it seems as
if the window is being created as a dialog or something, and the arrow
keys are being ignored! Any ideas as to what I'm doing wrong?
Extra info:
I compiled SciLexer.dll on Windows 2000 with Visual Studio.NET - I
also compiled Scite and everything is fine in Scite, so it's
definitely something to do with the way I am creating the control in
.NET.
Sending the SCI_CHARLEFT message to the control works fine.
Any help appreciated.
Cheers
Matt
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest