showing all palette components when no form shown

git-svn-id: trunk@3092 -
This commit is contained in:
mattias 2002-08-18 08:57:35 +00:00
parent f5d092fc79
commit 2ea8dc7d31

View File

@ -2031,8 +2031,8 @@ procedure TMainIDE.UpdateIDEComponentPalette;
var
ShowControlsInComponentalette: Boolean;
begin
ShowControlsInComponentalette:=(FLastFormActivated<>nil)
and (TDesigner(FLastFormActivated.Designer).LookupRoot is TControl);
ShowControlsInComponentalette:=(FLastFormActivated=nil)
or (TDesigner(FLastFormActivated.Designer).LookupRoot is TControl);
IDEComponentPalette.ShowHideControls(ShowControlsInComponentalette);
end;
@ -9032,6 +9032,9 @@ end.
{ =============================================================================
$Log$
Revision 1.600 2003/06/06 08:46:12 mattias
showing all palette components when no form shown
Revision 1.599 2003/06/06 08:34:18 mattias
fixed unhiding components