mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 19:39:17 +02:00
Cocoa/Form: fix the issue at Desgin time
This commit is contained in:
parent
33f0b15dc1
commit
481187923e
@ -629,6 +629,8 @@ begin
|
|||||||
form:= window.lclGetTarget;
|
form:= window.lclGetTarget;
|
||||||
if not (form is TCustomForm) then
|
if not (form is TCustomForm) then
|
||||||
continue;
|
continue;
|
||||||
|
if csDesigning in TCustomForm(form).ComponentState then
|
||||||
|
continue;
|
||||||
style:= TCustomForm(form).FormStyle;
|
style:= TCustomForm(form).FormStyle;
|
||||||
if style in fsAllNonSystemStayOnTop then
|
if style in fsAllNonSystemStayOnTop then
|
||||||
window.setLevel( NSFloatingWindowLevel );
|
window.setLevel( NSFloatingWindowLevel );
|
||||||
@ -663,6 +665,8 @@ begin
|
|||||||
form:= window.lclGetTarget;
|
form:= window.lclGetTarget;
|
||||||
if not (form is TCustomForm) then
|
if not (form is TCustomForm) then
|
||||||
continue;
|
continue;
|
||||||
|
if csDesigning in TCustomForm(form).ComponentState then
|
||||||
|
continue;
|
||||||
style:= TCustomForm(form).FormStyle;
|
style:= TCustomForm(form).FormStyle;
|
||||||
if style in fsAllNonSystemStayOnTop then begin
|
if style in fsAllNonSystemStayOnTop then begin
|
||||||
window.setLevel( NSNormalWindowLevel );
|
window.setLevel( NSNormalWindowLevel );
|
||||||
|
Loading…
Reference in New Issue
Block a user