Changeset 210 for branches/highdpi/LocalPlayer/PVSB.pas
- Timestamp:
- May 9, 2020, 4:02:07 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/PVSB.pas
r178 r210 5 5 6 6 uses 7 {$IFDEF WINDOWS}7 UDpiControls, {$IFDEF WINDOWS} 8 8 Windows, 9 9 {$ENDIF} 10 10 Classes, Controls, Forms, LCLIntf, LCLType, LMessages, Messages, SysUtils, 11 StdCtrls, Math , UDpiControls;11 StdCtrls, Math; 12 12 13 13 type … … 109 109 if Max < ScrollBar.PageSize then Result := False 110 110 else begin 111 NewPos := ScrollBar.Position - Delta div 30 0;111 NewPos := ScrollBar.Position - Delta div 30; 112 112 if NewPos < 0 then NewPos := 0; 113 113 if NewPos > Max - ScrollBar.PageSize + 1 then … … 153 153 begin 154 154 FMax := AValue; 155 ScrollBar.Max := Math.Max(0, Max{$IFDEF LINUX} - PageSize + 1{$ENDIF});155 ScrollBar.Max := Math.Max(0, FMax); 156 156 end; 157 157
Note:
See TracChangeset
for help on using the changeset viewer.