I am porting a program from windows to macintosh. I have little experience with Macintosh but 99.9% of the port has went w/o issue. One of the last issues deals with modal forms not working as they do in windows/linux.
In my sample code I have mainform and loginform. in mainform.activate, loginform.showmodal is called.
In windows, mainform is displayed, then loginform is displayed on top of that as one would expect.
In Mac, only loginform shows but if anything in loginform is clicked (the form itself or the combobox), then mainform is displayed behind loginform.
I actually want mainform to be hidden when loginform is displayed. If I put self.hide before loginform.showmodal, the same effect occurs. mainform is initially hidden, but clicking on anything in loginform causes mainform to be displayed.
In windows, I get the effect I need: loginform is displayed by itself. When the button is clicked, it is closed and mainform is displayed.
I've searched the forum, the bug tracker, and the 'net and not been able to find anyone discussing this issue. I've tried playing with all the various form settings and nothing I've tried allows the mac version to act properly.
Does any one have any ideas what may be wrong?
Thanks,
bigDan
I'm using Lazarus 2.0RCL2/Cocoa/64bit, compiling on an El Capitan system.