Thanks to everyone who replied about this.

Chris Crowe's method works to hide the main form from the taskbar in the
first instance so that is good.

With ShowWindow(Application.Handle, SW_HIDE), I am unsure of where to put
this in my code. It won't work inthe oncreate for the form but it does work
in a button or something. Any suggestions where to put it?

How do you go about adding popupmenu items to the system tray icon?

Cheers,

Matt.
----- Original Message -----
From: Mark Derricutt <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Sent: Monday, June 14, 1999 3:36 PM
Subject: RE: [DUG]: System tray.


> On Mon, 14 Jun 1999, Patrick Dunford wrote:
>
> > Once you call the Hide method of the main form then it disappears
> > completely.
>
> Hiding the main form isn't what you really want, you want to hide the
> application window, I use:
>
>   ShowWindow(Application.Handle, SW_HIDE);
>
> Which does it.
>
> --
> Mark Derricutt, PB Power NZ Ltd (http://www.pbpower.net)
> Now Playing... Fish - Raingods with Zippos
>
> --------------------------------------------------------------------------
-
>     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

Reply via email to