Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Delphi Misc > New form acts w...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 5982 of 6113
Post > Topic >>

New form acts weirdly on taskbar

by adamscybot@[EMAIL PROTECTED] Feb 14, 2008 at 05:04 AM

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!
 




 1 Posts in Topic:
New form acts weirdly on taskbar
adamscybot@[EMAIL PROTECT  2008-02-14 05:04:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Jul 23 16:13:14 CDT 2008.