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 | |
---|
1 | unit SynEditEx;
|
---|
2 |
|
---|
3 | interface
|
---|
4 |
|
---|
5 | uses
|
---|
6 | Classes, SysUtils, LMessages, Messages, LCLType, LCLIntf, SynEdit;
|
---|
7 |
|
---|
8 | type
|
---|
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 |
|
---|
20 | procedure Register;
|
---|
21 |
|
---|
22 |
|
---|
23 | implementation
|
---|
24 |
|
---|
25 | procedure Register;
|
---|
26 | begin
|
---|
27 | RegisterComponents('Common', [TSynEditEx]);
|
---|
28 | end;
|
---|
29 |
|
---|
30 | { TSynEditEx }
|
---|
31 |
|
---|
32 | procedure TSynEditEx.WMVScroll(var Msg: TLMScroll);
|
---|
33 | begin
|
---|
34 | if Assigned(FOnScroll) then
|
---|
35 | FOnScroll(Self);
|
---|
36 | inherited;
|
---|
37 | end;
|
---|
38 |
|
---|
39 | end.
|
---|
40 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.