The problem solved. Thanks, Chris and Jeremy.
Jim
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf Of Chris Crowe
Sent: Wednesday, January 12, 2000 13:10
To: Multiple recipients of list delphi
Subject: RE: [DUG]: How to hide a taskbar button
procedure CreateParams(var Params: TCreateParams); override;
procedure TClass.CreateParams(var Params: TCreateParams);
begin
inherited CreateParams(Params);
with Params do
begin
Style := Style or WS_BORDER;
{$ifdef win32}
if not (csdesigning in ComponentState) then
ExStyle := WS_EX_TOOLWINDOW or WS_EX_TOPMOST;
{$endif}
WindowClass.Style := CS_SAVEBITS;
end;
end;
Try something like that... I can't remember if it does or doesn't but I use
it in a panel that floats....
Chris
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Jim Zheng
Sent: Wednesday, 12 January 2000 12:56
To: Multiple recipients of list delphi
Subject: RE: [DUG]: How to hide a taskbar button
That will hide the application taskbar button, not the taskbar button for
the panel.
My aim is trying to keep the application behavior same as it was regardless
the panel display on form or out of form.
Jim
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf Of Coulter, Jeremy
Sent: Wednesday, January 12, 2000 12:16
To: Multiple recipients of list delphi
Subject: RE: [DUG]: How to hide a taskbar button
in your paint event of your form, put :-
ShowWindow(application.handle,SW_HIDE);
Cheers,
Jeremy Coulter
Application Developer
Application Development Centre
Compaq Computer New Zealand Ltd.
Phone: 64 3 371 5724
Fax: 64 3 371 5724
Mobile: 64 0212533214
E-mail: [EMAIL PROTECTED]
Personal Email: [EMAIL PROTECTED]
-----Original Message-----
From: Jim Zheng [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 12, 2000 12:06 PM
To: Multiple recipients of list delphi
Subject: [DUG]: How to hide a taskbar button
Hi, all,
I want to display a control like a panel outside of form i.e. on desktop. I
do the following:
Windows.SetParent(Panel1.Handle,0);
However a taskbar button for the panel appears on taskbar which I don't
want.
Anyone here knows how to hide it or make it disappear?
Cheers,
Jim
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz