[Lazarus] Question about modal forms behaviour under windows

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Mon Feb 8 11:15:42 CET 2016


Hi,

[mailing list: strangely, I get replies to zeljko's message, yet haven't
seen zeljko's reply yet (and no, I don't have spam filters set up). I
had to copy the quote text below from the Lazarus archives.]

On 2016-02-08 08:02, zeljko wrote:
> Actually, LCL applications (Delphi also) CAN HAVE minimize button on 
> modal form, so that's exact point of my question.
> Simplified what to do:

I didn't mean it is not possible, I meant it is not normally done - for
good reason.


> 1.Leave it as it is - minimized modal form does not minimize app (pretty 
> bad, since you cannot access desktop if your mainform is maximized)

Indeed, that is bad.


> 2.Change default behaviour - minimized modal form minimizes complete 
> app. I like how it works under X11 .... eg minimizing Lazarus About 
> dialog under KDE kwin, minimizes complete app, clicking on app in tray, 
> restores app.

Ah, we got to love LCL consistency. [NOT]  Lazarus v1.7 About dialog
under LCL-GTK2 (on my JWM desktop environment), there is no minimize
button. The about dialog only has a Maximize (????) and a Close button.

Either way, I agree with point 2. If modal dialogs have a minimize
button, the only sane behaviour would be to minimise the whole
application, and then restore the whole application and all
windows/dialogs when needed.

Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp




More information about the Lazarus mailing list