Cocoa: ShowModal with cannot focus errormessage
Original Reporter info from Mantis: wittbo
-
Reporter name: Dr. Bodo Wittig
Original Reporter info from Mantis: wittbo
- Reporter name: Dr. Bodo Wittig
Description:
My example contains three forms:
main, frmDialog, frmTermine.
- Click button "Button1"; frmDialog appears correctly; press OK to close.
- Click button "Buuton2"; frmTermine appears; press OK to close; then click button "Button1" again; errormessage (see attachment, within the project folder)
If I would...
- open frmTermin with ShowModal too, no error or
- open frmDialog only with Show, no error or
- remove btnOK.SetFocus in frmTermine.FormActivate, no error
It seems, that different opening (Show, ShowModal) of different forms in one application won't work. BTW this is only the case in my MacOS Cocoa environment, with Carbon or Windows 10 no problem...
i tried the following combinations (OS version + compiler options):
10.14.3 Mojave
Cocoa Default Default Error
Cocoa Darwin X86_64 Error
Cocoa Darwin i386 Error
Carbon Default Default No Error
Carbon Darwin X86_64 No Error
Carbon Darwin i386 No Error
10.13.6 High Sierra
Cocoa Default Default Error
Cocoa Darwin X86_64 Error
Cocoa Darwin i386 Error
Carbon Default Default No Error
Carbon Darwin X86_64 No Error
Carbon Darwin i386 No Error
So the problem as described can be reproduced with cocoa only; carbon is OK.
Steps to reproduce:
- Open Application
- Click button "Button1"; frmDialog appears correctly; press OK to close.
- Click button "Buuton2"; frmTermine appears; press OK to close; then click button "Button1" again; errormessage (see attachment)
Additional information:
MacOS Cocoa only
MacOS Carbon OK
Windows 10 OK
I tried this also with 2.0.1 svn; same behaviour without any change.
Mantis conversion info:
- Mantis ID: 35221
- OS: MacOS High Sierra + Mojave
- OS Build: 10.13.6/10.14.3
- Build: don't know
- Platform: iMac 27" Macbook Air 13"
- Version: 2.0