Cocoa/Form: fix the issue at Desgin time

This commit is contained in:
rich2014 2023-11-17 01:22:23 +08:00
parent 33f0b15dc1
commit 481187923e

View File

@ -629,6 +629,8 @@ begin
form:= window.lclGetTarget;
if not (form is TCustomForm) then
continue;
if csDesigning in TCustomForm(form).ComponentState then
continue;
style:= TCustomForm(form).FormStyle;
if style in fsAllNonSystemStayOnTop then
window.setLevel( NSFloatingWindowLevel );
@ -663,6 +665,8 @@ begin
form:= window.lclGetTarget;
if not (form is TCustomForm) then
continue;
if csDesigning in TCustomForm(form).ComponentState then
continue;
style:= TCustomForm(form).FormStyle;
if style in fsAllNonSystemStayOnTop then begin
window.setLevel( NSNormalWindowLevel );