Forum > Carbon

[SOLVED] OpenFileDialog in a secondary modal form

(1/1)

tintinux:
Hi

With Lazarus 1.6.0, in the attached example, there is a Button on the main form (Form1)  to open a file dialog. Works fine everywhere.

There is another button to open a second modal form. This form has another button to open another file dialog.

On Windows and Linux this second button works fine.

On Mac OS/X - Carbon, the file dialog is shown under Form2, and it is not possible to get focus to put it. The program is stuck and the process must be killed !

Has anyone noticed this problem, or found a workaround ?

I will file a bug if it is confirmed.

Thanks 

Phil:
Well-known bug that certainly mars the perception of 1.6 on Mac!

http://mantis.freepascal.org/view.php?id=29694

Comment out the indicated 5 lines in the patch and rebuild Lazarus will fix it.

tintinux:
Thanks for the information.

I suppose we have to remove 8 lines starting with "-" in the patch, not 5.

Best regards

Phil:
The variable declarations can be removed, but don't matter.

Navigation

[0] Message Index

Go to full version