Neil wrote:
>> SciTE 1.72 .31Ru is now available from the scite.ruteam.ru web site.
NH> It appears that this version omits the position and line fields for
NH> the SCN_DOUBLECLICK notification in Editor.cxx. This is incompatible
NH> with other versions of Scintilla.
Thanks for the exact remark!
It is a bug allowed owing to a carelessness.
Fixed in version SciTE_172_33Ru.
Source code (overpatched files only) [324 KB]:
<http://scite.ruteam.ru/engine/upfiles/mozers/SciTE_172_33Ru_src.zip>
Kernel Windows executable (SciTE.exe + SciLexer.dll) [446 KB]:
<http://scite.ruteam.ru/engine/upfiles/mozers/SciTE_172_33Ru.zip>
Editor.cxx
> -----------------------------------------------------------------
//!-start-[OnDoubleClick]
void Editor::NotifyDoubleClick(Point pt, bool shift, bool ctrl, bool alt) {
SCNotification scn = {0};
scn.nmhdr.code = SCN_DOUBLECLICK;
scn.line = LineFromLocation(pt);
scn.position = PositionFromLocationClose(pt);
scn.modifiers = (shift ? SCI_SHIFT : 0) | (ctrl ? SCI_CTRL : 0) |
(alt ? SCI_ALT : 0);
NotifyParent(scn);
}
//!-end-[OnDoubleClick]
> -----------------------------------------------------------------
Editor.h:
> -----------------------------------------------------------------
virtual void NotifyDoubleClick(Point pt, bool shift, bool ctrl, bool alt);
//!-add-[OnDoubleClick]
> -----------------------------------------------------------------
In the beginning I wanted to have event OnClick(keyCode), but mimir have made
as you see...
--
mozers
<http://scite.ruteam.ru>
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest