Unfortunately the button in the task bar is NT created for your main form.
Delphi creates an other windows for that purpose!
Try something like:
ShowWindow(Screen.Handle, SW_SHW)
from your main form's Show event handler.
Note: code written in !
Message
From: delphi-bounces (AT) elists (DOT) org [mailto:delphi-bounces (AT) elists (DOT) org]
Behalf Robert Meek
Sent: Wednesday, March 22, 2006 1:01 AM
To: Delphi (AT) elists (DOT) org
Subject: Interface use question
When you have an application that runs from the tray, do you prefer
NT to have it also show up on the windows taskbar, or do you like it to
appear in both? I've tried to make this an optional setting however it
doesn't seem possible as the mainform is created one way or the other
before
option settings can be readunless someone knows of a way to handle this
directly from the dpr? And note, the mainform of my application is used
only for basic setup code, global interface control components, the
trayicon
component, and its custom popup menu codeit never actually becomes
visible nor is it accessed directly in anyway by the user!
from Robert Meek dba Tangentals Design CCopyright 2006
"When I examine myself and my methods of thought, I come to the conclusion
that the gift of Fantasy has meant more to me then my talent for absorbing
positive knowledge!"
Albert Einstein
Delphi mailing list -Delphi (AT) elists (DOT) org
Delphi mailing list -Delphi (AT) elists (DOT) org