TCustomForm: MakeFullyVisible should use WorkAreaRect as default (sensible and also Delphi-compatible)

This commit is contained in:
Ondrej Pokorny 2021-11-19 08:32:28 +01:00
parent cbafa07331
commit 5f82f6ba31
2 changed files with 2 additions and 2 deletions

View File

@ -661,7 +661,7 @@ type
procedure IntfDropFiles(const FileNames: array of String);
procedure IntfHelp(AComponent: TComponent);
function IsShortcut(var Message: TLMKey): boolean; virtual;
procedure MakeFullyVisible(AMonitor: TMonitor = nil; UseWorkarea: Boolean = False);
procedure MakeFullyVisible(AMonitor: TMonitor = nil; UseWorkarea: Boolean = True);
function AutoSizeDelayedHandle: Boolean; override;
procedure GetPreferredSize(var PreferredWidth, PreferredHeight: integer;
Raw: boolean = false;

View File

@ -2575,7 +2575,7 @@ begin
end;
end;
procedure TCustomForm.MakeFullyVisible(AMonitor: TMonitor; UseWorkarea: Boolean = False);
procedure TCustomForm.MakeFullyVisible(AMonitor: TMonitor; UseWorkarea: Boolean);
var
newLeft, newTop, WindowWidth, WindowHeight: Integer;
ABounds: TRect;