Recent

Author Topic: Weird behaviour with modal dialogs  (Read 2019 times)

allanm

  • New member
  • *
  • Posts: 8
Weird behaviour with modal dialogs
« on: April 30, 2018, 09:34:20 am »
I am currently converting a major program from Carbon to Cocoa, and everything has gone surprisingly well, except for this issue:

- When I have a modal dialog that opens another modal dialog, all of the controls on the second dialog are greyed out.
- If I close the second dialog and then open it again (without closing the first dialog), then the controls are enabled
- If I close both dialogs and then open them both again, it goes back to the start.

I have attached a sample code, which works fine in Windows and Carbon, but not Cocoa.

Any ideas??  Or should I lodge this as a bug?

Thaddy

  • Hero Member
  • *****
  • Posts: 9167
Re: Weird behaviour with modal dialogs
« Reply #1 on: April 30, 2018, 03:26:36 pm »
Seems like a bug, the second one should grey out the first one.
also related to equus asinus.

allanm

  • New member
  • *
  • Posts: 8
Re: Weird behaviour with modal dialogs
« Reply #2 on: May 02, 2018, 01:40:39 am »
I see that this bug has already been reported a couple of weeks ago:
https://bugs.freepascal.org/view.php?id=33642