Im using a button to switch from one form to another. Quite simply:
procedure TStep1.NextStepClick(Sender: TObject);
begin
Step1.Hide;
Step2.Show;
end;
However, the new form acts weirdly on the taskbar. It has no name on
the taskbar (it has a caption) and when you minimize it FROM the
taskbar (not using minimize buttons) - once it goes down you cant get
it back up.
I want Step1 form to go from the taskbar and Step2 to appear on it.
How can this be done? I tried using this (online source):
protected
procedure CreateParams(var Params: TCreateParams); override;
procedure TStep2.CreateParams(var Params: TCreateParams);
begin
inherited CreateParams(Params);
Params.ExStyle := Params.ExStyle or WS_EX_APPWINDOW;
end;
This creates a working taskbar button for Step2 but the weird non-
working taslbar button is still there.
Help!