mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-05 18:15:57 +02:00
LCL: reactivated sending uninitialized bounds of TCustomPage to interface
git-svn-id: trunk@11191 -
This commit is contained in:
parent
84a9e3e870
commit
e16a765e54
@ -69,7 +69,9 @@ type
|
|||||||
function DialogChar(var Message: TLMKey): boolean; override;
|
function DialogChar(var Message: TLMKey): boolean; override;
|
||||||
procedure DoHide; dynamic;
|
procedure DoHide; dynamic;
|
||||||
procedure DoShow; dynamic;
|
procedure DoShow; dynamic;
|
||||||
|
{$IFDEF EnableSizePatch}
|
||||||
procedure DoSendBoundsToInterface; override;
|
procedure DoSendBoundsToInterface; override;
|
||||||
|
{$ENDIF}
|
||||||
public
|
public
|
||||||
constructor Create(TheOwner: TComponent); override;
|
constructor Create(TheOwner: TComponent); override;
|
||||||
procedure AdjustClientRect(var ARect: TRect); override;
|
procedure AdjustClientRect(var ARect: TRect); override;
|
||||||
|
@ -200,10 +200,12 @@ begin
|
|||||||
FOnShow(Self);
|
FOnShow(Self);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{$IFDEF EnableSizePatch}
|
||||||
procedure TCustomPage.DoSendBoundsToInterface;
|
procedure TCustomPage.DoSendBoundsToInterface;
|
||||||
begin
|
begin
|
||||||
// a page is only sized by the interface
|
// a page is only sized by the interface
|
||||||
end;
|
end;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
function TCustomPage.IsControlVisible: Boolean;
|
function TCustomPage.IsControlVisible: Boolean;
|
||||||
begin
|
begin
|
||||||
|
@ -1161,6 +1161,14 @@ begin
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
SizeMsg.SizeType:=SIZENORMAL;
|
SizeMsg.SizeType:=SIZENORMAL;
|
||||||
|
|
||||||
|
// don't bother the LCL if nothing changed
|
||||||
|
case SizeMsg.SizeType of
|
||||||
|
SIZENORMAL: if TheForm.WindowState=wsNormal then exit;
|
||||||
|
SIZEICONIC: if TheForm.WindowState=wsMinimized then exit;
|
||||||
|
SIZEFULLSCREEN: if TheForm.WindowState=wsMaximized then exit;
|
||||||
|
end;
|
||||||
|
|
||||||
with SizeMsg do
|
with SizeMsg do
|
||||||
begin
|
begin
|
||||||
Result := 0;
|
Result := 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user