The sequence is this:
I start my application at one form. After pressing a button, I call another form and hide the first one. After pressing another button, I execute Application.Minimize()
.
And then, when I maximize the application by pressing the app icon, the first form is shown again.
Does maximizing show all existing forms again?
application.mainForm := secondForm
after you hide the first form.MainForm
at runtime. Because of thatMainForm
property is a read-only property.WM_SHOWWINDOW
to your main form instead to your second form as you might expect. Your second form needs to have its own taskbar icon in order to receiveWM_SHOWWINDOW
message directly.