mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 01:55:54 +02:00
formatting
git-svn-id: trunk@14817 -
This commit is contained in:
parent
ce0cf00e3d
commit
104762c2a8
@ -3234,7 +3234,8 @@ procedure TControl.SetVisible(Value : Boolean);
|
||||
var
|
||||
AsWincontrol: TWinControl;
|
||||
begin
|
||||
if FVisible <> Value then begin
|
||||
if FVisible <> Value then
|
||||
begin
|
||||
//DebugLn(['TControl.SetVisible ',DbgSName(Self),' NewVisible=',Value]);
|
||||
VisibleChanging;
|
||||
FVisible := Value;
|
||||
@ -3242,26 +3243,27 @@ begin
|
||||
Perform(CM_VISIBLECHANGED, WParam(Ord(Value)), 0);
|
||||
Include(FControlFlags,cfRequestAlignNeeded);
|
||||
if (Self is TWinControl) then
|
||||
AsWincontrol:=TWinControl(Self)
|
||||
AsWincontrol := TWinControl(Self)
|
||||
else
|
||||
AsWincontrol:=nil;
|
||||
if FVisible then begin
|
||||
if AsWincontrol<>nil then
|
||||
Include(AsWincontrol.FWinControlFlags,wcfReAlignNeeded);
|
||||
AsWincontrol := nil;
|
||||
if FVisible then
|
||||
begin
|
||||
if AsWincontrol <> nil then
|
||||
Include(AsWincontrol.FWinControlFlags, wcfReAlignNeeded);
|
||||
AdjustSize;
|
||||
if (AsWincontrol<>nil) and (wcfReAlignNeeded in AsWincontrol.FWinControlFlags) then
|
||||
if (AsWincontrol <> nil) and (wcfReAlignNeeded in AsWincontrol.FWinControlFlags) then
|
||||
AsWincontrol.ReAlign;
|
||||
end;
|
||||
if cfRequestAlignNeeded in FControlFlags then
|
||||
RequestAlign;
|
||||
if AsWincontrol<>nil then
|
||||
if AsWincontrol <> nil then
|
||||
AsWincontrol.ResizeDelayedAutoSizeChildren;
|
||||
finally
|
||||
VisibleChanged;
|
||||
end;
|
||||
end;
|
||||
if (csLoading in ComponentState) then
|
||||
ControlState:=ControlState+[csVisibleSetInLoading];
|
||||
ControlState := ControlState + [csVisibleSetInLoading];
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user