Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-06

Issue #15866: TIpHtmlPanel scrollbar not functional on Win64

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juha Manninen

http://bugs.freepascal.org/view.php?id=15866

Gerd Sager and Zeljan:
It is good to have some kind of fix for the issue, but IMO the problem is elsewhere.
In my understanding the LM_xxx messages should map to WM_xxx messages on Windows. The idea is to simulate the Windows message system in a cross-platform way.
Thus, the problem is in wrong mapping of those messages somewhere.

Regards,
Juha

Reply by email

zeljko
to Juha Manninen
Juha Manninen wrote 9 lines
http://bugs.freepascal.org/view.php?id=15866 Gerd Sager and Zeljan: It is good to have some kind of fix for the issue, but IMO the problem is elsewhere. In my understanding the LM_xxx messages should map to WM_xxx messages on Windows. The idea is to simulate the Windows message system in a cross-platform way. Thus, the problem is in wrong mapping of those messages somewhere.

That patch fixed things afaik. Is there any problem ? something new raised ?

z.

Reply by email

Gerd Sager
to Juha Manninen: http://bugs.freepascal.org/view.php?id=15866 Gerd Sager and Zeljan: It is good to have…
Juha Manninen wrote 13 lines
http://bugs.freepascal.org/view.php?id=15866 Gerd Sager and Zeljan: It is good to have some kind of fix for the issue, but IMO the problem is elsewhere. In my understanding the LM_xxx messages should map to WM_xxx messages on Windows. The idea is to simulate the Windows message system in a cross-platform way. Thus, the problem is in wrong mapping of those messages somewhere. Regards, Juha

Hi Juha,

scrolling works well anywhere in the LCL, except in the iphtml package on 64 bit windows.
The reason is that the field ScrollCode of the TWMScroll record always contains 0 (windows 64 bit).
Due to a change in the size of lparam and wparam in windows 64 bit the TWMScroll record - defined in FPC's messages.inc - does no longer fit.

You will find the correct definition in the TLMScroll record in the LCL LMessages unit. The LCL itself uses the TLMScroll record and the messages LM_HSCROLL and LM_VSCROLL as you can see in TCustomScrollBar (stdctrls.pp).

Kind regards

Gerd

Reply by email