From: Andreas H. <ah...@us...> - 2003-09-26 21:12:57
|
Update of /cvsroot/jvcl/dev/JVCL3/run In directory sc8-pr-cvs1:/tmp/cvs-serv9706/run Added Files: JvUnicodeEditor.pas JvUnicodeHLEditor.pas Log Message: The unicode JvWideEditor/JvWideHLEditor former JvEditor/JvHLEditor --- NEW FILE: JvUnicodeEditor.pas --- {----------------------------------------------------------------------------- The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/MPL-1.1.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed or implied. See the License for the specific language governing rights and limitations under the License. The Original Code is: JvEditor.PAS, released on 2002-07-04. The Initial Developers of the Original Code are: Andrei Prygounkov <a.p...@gm...> Copyright (c) 1999, 2002 Andrei Prygounkov All Rights Reserved. Contributor(s): Burov Dmitry, translation of russian text. Andreas Hausladen [...6966 lines suppressed...] Ch: WideChar; begin Form := GetParentForm(Self); if (Form <> nil) and Form.KeyPreview and TWinControlAccess(Form).DoKeyPress(Message) then Exit; if not (csNoStdEvents in ControlStyle) then with Message do begin Ch := WideChar(CharCode); KeyPress(Ch); CharCode := Word(Ch); if WideChar(CharCode) = #0 then Exit; end; with TMessage(Message) do Message.Result := DefWindowProc(Handle, Msg, WParam, LParam); end; {$ENDIF} end. --- NEW FILE: JvUnicodeHLEditor.pas --- {----------------------------------------------------------------------------- The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/MPL-1.1.html Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed or implied. See the License for the specific language governing rights and limitations under the License. The Original Code is: JvHLEditor.PAS, released on 2002-07-04. The Initial Developers of the Original Code are: Andrei Prygounkov <a.p...@gm...> Copyright (c) 1999, 2002 Andrei Prygounkov All Rights Reserved. Contributor(s): Last Modified: 2002-09-20 [...1718 lines suppressed...] end; procedure TJvWideHLEditor.SetSyntaxHighlighter(const Value: TJvWideEditorHighlighter); begin if Value <> FSyntaxHighlighter then begin if Value <> nil then FHighlighter := hlSyntaxHighlighter else if FHighlighter = hlSyntaxHighlighter then FHighlighter := hlNone; FSyntaxHighlighter := Value; RescanLong(0); Invalidate; end; end; end. |