Lazarus

Programming => Widgetset => Cocoa => Topic started by: bigDan on November 03, 2019, 06:22:45 pm

Title: Exiting nested showmodals results in mainform allowing focus
Post by: bigDan on November 03, 2019, 06:22:45 pm
I have a large app that has been running on macOS/64bit/QT5. I would love to get rid of QT and use Cocoa instead. I installed 2.0.6 this weekend and tried using Cocoa.

For the most part things work. I hit two problems though, the first I'll document here:

FormA does a FormB.showmodal.
FormB does a FormC.showmodal.

At this point, 3 forms are displayed. If you click on FormA or FormB, neither will become active.

Now exit FormC, returning to FormB.

At this point FormB is displayed.

However, if I click on FormA it will become active.

In Windows, macOS/QT, and macOS carbon, formA will NOT become active like this.

I believe this is a bug?

Enclosed is a test app I have tried on Windows, macOS/QT, macOS/carbon, and macOS/Cocoa. To replicate the problem, run the app,





Title: Re: Exiting nested showmodals results in mainform allowing focus
Post by: skalogryz on November 05, 2019, 06:34:05 am
please try r62198
Title: Re: Exiting nested showmodals results in mainform allowing focus
Post by: bigDan on November 05, 2019, 07:44:09 pm
Works like a charm!
TinyPortal © 2005-2018