Recent

Author Topic: [SOLVED] OpenFileDialog in a secondary modal form  (Read 4416 times)

tintinux

  • Sr. Member
  • ****
  • Posts: 299
    • Gestinux
[SOLVED] OpenFileDialog in a secondary modal form
« on: July 21, 2016, 05:21:55 pm »
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 
« Last Edit: July 21, 2016, 05:54:58 pm by tintinux »
Initiator of gestinux, open-source, multi-database and multilingual accounting and billing software made with LAZARUS.

You can help to develop, to make and improve translations, and to provide examples of legal charts and reports from more countries.

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: OpenFileDialog in a secondary modal form
« Reply #1 on: July 21, 2016, 05:29:04 pm »
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

  • Sr. Member
  • ****
  • Posts: 299
    • Gestinux
Re: OpenFileDialog in a secondary modal form
« Reply #2 on: July 21, 2016, 05:54:40 pm »
Thanks for the information.

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

Best regards
Initiator of gestinux, open-source, multi-database and multilingual accounting and billing software made with LAZARUS.

You can help to develop, to make and improve translations, and to provide examples of legal charts and reports from more countries.

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: [SOLVED] OpenFileDialog in a secondary modal form
« Reply #3 on: July 21, 2016, 05:55:20 pm »
The variable declarations can be removed, but don't matter.