mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 03:48:27 +02:00
LCL: don't call OnHide/OnShow after minimizing/restoring (bug #7255)
git-svn-id: trunk@10506 -
This commit is contained in:
parent
b6299f483a
commit
5fef15b66b
@ -423,6 +423,7 @@ type
|
||||
protected
|
||||
FFormBorderStyle: TFormBorderStyle;
|
||||
FActionLists: TList;
|
||||
procedure CMShowingChanged(var Message: TLMessage); message CM_SHOWINGCHANGED;
|
||||
procedure Activate; dynamic;
|
||||
procedure ActiveChanged; dynamic;
|
||||
procedure BeginFormUpdate;
|
||||
|
@ -428,9 +428,6 @@ begin
|
||||
{$ENDIF}
|
||||
LCLIntf.SetFocus(FActiveControl.Handle);
|
||||
end;
|
||||
DoShow;
|
||||
end else begin
|
||||
DoHide;
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
@ -471,6 +468,14 @@ begin
|
||||
Deactivate;
|
||||
end;
|
||||
|
||||
procedure TCustomForm.CMShowingChanged(var Message: TLMessage);
|
||||
begin
|
||||
inherited;
|
||||
if Showing then
|
||||
DoShow
|
||||
else
|
||||
DoHide;
|
||||
end;
|
||||
{------------------------------------------------------------------------------
|
||||
Method: TCustomForm.Activate
|
||||
Params: none
|
||||
|
Loading…
Reference in New Issue
Block a user