Recent

Author Topic: Darkening form  (Read 488 times)

big_M

  • Jr. Member
  • **
  • Posts: 95
Darkening form
« on: September 19, 2023, 01:26:39 pm »
On qt5, when I show a dialog, all other forms get darkened and disabled. Lazarus itself behaves the same when opening any option window. How can I get this effect in my app? Currently I simply disable the form, but that doesn't apply this darker gray overlay to the form, and generally looks very different.

Also can this be emulated on windows?


zeljko

  • Hero Member
  • *****
  • Posts: 1668
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Darkening form
« Reply #1 on: September 19, 2023, 01:37:25 pm »
That's window manager effect AFAIR, and it shows overlay above blocked forms when modal window or dialog is shown.

big_M

  • Jr. Member
  • **
  • Posts: 95
Re: Darkening form
« Reply #2 on: September 19, 2023, 01:54:31 pm »
Perfect, thanks.

If I show my second form with Form.ShowModal instead of Form.Visible:=true it indeed applies that effect on kde plasma. Great!

I thought so about it being a wm thing.

 

TinyPortal © 2005-2018