LCL: Improve Memo.ScrollBy for Windows widgetset. Patch by Ondrej.

git-svn-id: trunk@50525 -
This commit is contained in:
juha 2015-11-29 20:57:15 +00:00
parent d0f1cf3088
commit 72b8d27401
2 changed files with 1 additions and 3 deletions

View File

@ -167,7 +167,6 @@ type
procedure WMHScroll(var Message : TLMHScroll); message LM_HScroll;
procedure WMVScroll(var Message : TLMVScroll); message LM_VScroll;
procedure ComputeScrollbars; virtual;
//procedure ScrollbarHandler(ScrollKind: TScrollBarKind; OldPosition: Integer); virtual;
procedure SetAutoScroll(Value: Boolean); virtual;
procedure Loaded; override;
procedure Resizing(State: TWindowState); virtual;

View File

@ -1438,8 +1438,7 @@ end;
class procedure TWin32WSCustomMemo.ScrollBy(const AWinControl: TWinControl;
DeltaX, DeltaY: integer);
begin
SendMessage(AWinControl.Handle, EN_HSCROLL, 0, -DeltaX);
SendMessage(AWinControl.Handle, EN_VSCROLL, 0, -DeltaY); // or EM_LINESCROLL
SendMessage(AWinControl.Handle, EM_LINESCROLL, -DeltaX, -DeltaY);
end;
{ TWin32WSCustomStaticText }