From d8d802c013a33d05bd808bca31e630f28fdc6742 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 5 Jul 2002 12:55:53 +0000 Subject: Documented the incorrect values of SCEN_SETFOCUS and SCEN_KILLFOCUS. --- doc/ScintillaDoc.html | 3 +++ include/Scintilla.iface | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 39cc14a34..966d0d4fb 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -1513,6 +1513,9 @@ SCEN_KILLFOCUS These notifications are sent using the WM_COMMAND message on Windows and the "Command" signal on GTK+ as this is the behaviour of the standard edit control. + The SET and KILL values are flipped over from the Windows edit + control and as clients depend on these constants, this will not be changed + to be compatible.

 SCN_MODIFIED
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index c310da062..8a65463fe 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -1334,7 +1334,9 @@ val SC_MOD_BEFOREDELETE=0x800
 val SC_MODEVENTMASKALL=0xF77
 
 # For compatibility, these go through the COMMAND notification rather than NOTIFY
-# and have exactly the same values as the EN_* constants.
+# and should have had exactly the same values as the EN_* constants.
+# Unfortunately the SETFOCUS and KILLFOCUS are flipped over from EN_*
+# As clients depend on these constants, this will not be changed.
 val SCEN_CHANGE=768
 val SCEN_SETFOCUS=512
 val SCEN_KILLFOCUS=256
-- 
cgit v1.2.3