mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 21:20:28 +02:00
LCL: TControlScrollBar.ClientSizeWith(out)Bar: include space between bar and client area
git-svn-id: trunk@45098 -
This commit is contained in:
parent
2e69662d45
commit
34d8e6b1fb
@ -437,14 +437,14 @@ function TControlScrollBar.ClientSizeWithBar: integer;
|
||||
begin
|
||||
Result := ClientSize;
|
||||
if not IsScrollBarVisible then
|
||||
Result := Max(0,Result-GetSize);
|
||||
Result := Max(0,Result-GetSize-GetSystemMetrics(SM_SWSCROLLBARSPACING));
|
||||
end;
|
||||
|
||||
function TControlScrollBar.ClientSizeWithoutBar: integer;
|
||||
begin
|
||||
Result:=ClientSize;
|
||||
if IsScrollBarVisible then
|
||||
inc(Result, GetSize);
|
||||
inc(Result, GetSize+GetSystemMetrics(SM_SWSCROLLBARSPACING));
|
||||
end;
|
||||
|
||||
function TControlScrollBar.GetHorzScrollBar: TControlScrollBar;
|
||||
|
Loading…
Reference in New Issue
Block a user