View previous topic :: View next topic |
Author |
Message |
mstaszew
Joined: 21 Jul 2006 Posts: 67 Location: North Carolina, USA
|
Posted: Wed Aug 02, 2006 7:06 pm Post subject: Bug report |
|
|
I think that there is a bug in TCustomSyntaxMemo.WndProc.
Code: |
...
EM_LINESCROLL: begin
ScrollPosX := ScrollPosX + WParam;
ScrollPosX := ScrollPosX + LParam;
Result := 1;
end;
... |
Should be...
Code: |
...
EM_LINESCROLL: begin
ScrollPosX := ScrollPosX + WParam;
ScrollPosY := ScrollPosY + LParam;
Result := 1;
end;
... |
Thanks. |
|
Back to top |
|
|
econtrol Site Admin
Joined: 09 Jun 2006 Posts: 202
|
Posted: Wed Aug 02, 2006 11:27 pm Post subject: |
|
|
Yes, thank you.
Final implementation:
Code: | ...
EM_LINESCROLL: begin
ScrollPosX := ScrollPosX + WParam;
TopLine := TopLine + LParam;
Result := 1;
end;
... |
For information:
TopLine - Index of first visible line (also if this line is partially visible in wrod wrap mode).
ScrollPosY - Logical scroll position that corresponds to the position in vertical scroll bar, it's value is equal to TopLine only if there are no word wrap, collapsed ranges, hidden text.
Michael. |
|
Back to top |
|
|
|