[Lazarus] SetScrollInfo

Hans-Peter Diettrich DrDiettrich1 at aol.com
Fri Nov 25 10:06:07 CET 2011


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





More information about the Lazarus mailing list