Sign in Join

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

Mailing lists / lazarus / 2011-11

SetScrollInfo

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

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

Hans-Peter Diettrich

TWin32WidgetSet.SetScrollInfo modifies the content of the ScrollInfo

     ScrollInfo.nMax := Max(ScrollInfo.nMin, ScrollInfo.nMax - 1);

i.e. nMax is typically decremented by 1, with *every* new call!

IMO this is *not* a desireable behaviour.

Iff there exists a difference between the LCL and Win32 interpretation of the TScrollInfo record, this should be handled in a way that does not invalidate the user supplied information.

DoDi

Reply by email

Hans-Peter Diettrich
to Hans-Peter Diettrich
TWin32WidgetSet.SetScrollInfo modifies the content of the ScrollInfo ScrollInfo.nMax := Max(ScrollInfo.nMin, ScrollInfo.nMax - 1); i.e. nMax is typically decremented by 1, with *every* new call!

It looks like this is only a wrong implementation of the constraints, described in the WinAPI docs.

DoDi

Reply by email