win32: prevent designed components to become TopMost

git-svn-id: trunk@25774 -
This commit is contained in:
dmitry 2010-05-30 16:21:26 +00:00
parent aff5d74181
commit 25902403e2

View File

@ -451,7 +451,8 @@ begin
begin
lWinControl := lWindowInfo^.WinControl;
if (lWinControl <> nil) and (lWinControl is TCustomForm)
and (TCustomForm(lWinControl).FormStyle in fsAllStayOnTop) then
and (TCustomForm(lWinControl).FormStyle in fsAllStayOnTop)
and not (csDesigning in TCustomForm(lWinControl).ComponentState) then
list.Add(Pointer(Handle));
end;
end;