source: trunk/Packages/SynEditEx/SynEditEx.pas

Last change on this file was 159, checked in by chronos, 17 months ago
  • Modified: Support multiple translator PO directories.
File size: 616 bytes
Line 
1unit SynEditEx;
2
3interface
4
5uses
6 Classes, SysUtils, LMessages, Messages, LCLType, LCLIntf, SynEdit;
7
8type
9
10 { TSynEditEx }
11
12 TSynEditEx = class(TSynEdit)
13 private
14 FOnScroll: TNotifyEvent;
15 procedure WMVScroll(var Msg: TLMScroll); message WM_VSCROLL;
16 published
17 property OnScroll: TNotifyEvent read FOnScroll write FOnScroll;
18 end;
19
20procedure Register;
21
22
23implementation
24
25procedure Register;
26begin
27 RegisterComponents('Common', [TSynEditEx]);
28end;
29
30{ TSynEditEx }
31
32procedure TSynEditEx.WMVScroll(var Msg: TLMScroll);
33begin
34 if Assigned(FOnScroll) then
35 FOnScroll(Self);
36 inherited;
37end;
38
39end.
40
Note: See TracBrowser for help on using the repository browser.