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.]
zeljko wroteActually, 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 -