Forum > General

ShowModal disables form minimise

<< < (5/5)

dseligo:

--- Quote from: winni on May 15, 2021, 09:39:13 pm ---Hi!

Just tested:

Lin64/gtk2 : No Problems
Win7/64 : No Problems

So I think it is again a Win10 problem.

Dont use that rubbish!

Winni

--- End quote ---

It works fine on Win10.
I included test project (in case I didn't understand OP's problem).

lucamar:
I've modified a little dseligo's project so any of you can test more thorougly.

With this project (Xubuntu 18.04-x86_64 & Laz/FPC 2.0.12/3.2.0) this happens after you start the program:

* Clicking inmediately on "Show form C" things work as they should (with the small caveat outlined below);
* Clicking on "Show form B" and then clicking either A's or B's "Show form C" makes the clicked form loose its minimize button (image 1) and disable the items in the system menu, and it's not recovered after closing form C (image 2)One further caveat: even though it's a "normal" one and all is set right, form C never displays a minimize button either.

dseligo:

--- Quote from: lucamar on May 16, 2021, 09:57:02 pm ---I've modified a little dseligo's project so any of you can test more thorougly.

--- End quote ---

This still works fine on Windows 10.

tetrastes:
Some notes...
Have anybody noticed this?

--- Quote from: llion on May 15, 2021, 04:07:25 pm ---I wonder whether this is why Lazarus itself cannot be minimized?

--- End quote ---
I can confirm that Lazarus IDE (gtk2 64 bit) main window loses its Minimize button after opening its other windows at Debian 10 x86_64 Xfce (but not KDE).
I think this is bug/feature of LCLgtk2 (maybe qt also - did not test) apps at Xfce (maybe Xfce on Debian/clones only).

Apps at Linux behave very differently on different distros, widgetsets, DE, WM...  %)
For example, at the moment I am at Fedora 32 x86-64 LXQt with OpenBox WM. And with this WM modal window does not fully disable its parent, it may be minimized, maximized and resized while modal window is opened. Moreover, for gtk2 (though I have not gtk2 apps other than LCLgtk2 including Lazarus here) you can switch between modal and non-modal windows (for example in Lazarus IDE or in dseligo's and lucamar's projects when you open all 3 forms).
There are many things with Lazarus and Linux... For example, I never managed Form's property Position poDefault, poDefaultPosOnly, poDefaultSizeOnly to work...

lucamar:

--- Quote from: tetrastes on May 17, 2021, 12:33:46 am ---Have anybody noticed this?
--- Quote from: llion on May 15, 2021, 04:07:25 pm ---I wonder whether this is why Lazarus itself cannot be minimized?
--- End quote ---
I can confirm that Lazarus IDE (gtk2 64 bit) main window loses its Minimize button after opening its other windows at Debian 10 x86_64 Xfce (but not KDE).
--- End quote ---

Yes, I noticed it too (because of this thread) in Xubuntu (Xcfe). In fact it happened (again) right after running the test project: after pressing the "Run" combo, most all the IDE windows (including the editor and the project forms) lost the minimize button :(

What is interesting is that in both a plain Ubuntu (gnome) and a Kubuntu (kde) boxes it doesn't happpen, so there must be something "fishy" going on with Xfce and, presumably, other desktops.

Navigation

[0] Message Index

[*] Previous page

Go to full version