Hiding the application in the taskbar 
Author Message
 Hiding the application in the taskbar
Hi
I'm programming with DELPHI 4 Professional

how can i hide the application in the taskbar leaving only an icon in the
systray ( i already have the systray component, i only need to know how to
hide the application)



Wed, 18 Jun 1902 08:00:00 GMT
 Hiding the application in the taskbar

Hi,

Try:

    Main.Visible := False;

--Glenn

Quote:

> Hi
> I'm programming with DELPHI 4 Professional

> how can i hide the application in the taskbar leaving only an icon in
> the
> systray ( i already have the systray component, i only need to know
> how to
> hide the application)



Wed, 18 Jun 1902 08:00:00 GMT
 Hiding the application in the taskbar
Thanks for the quick answer
Unfortunatly, it's not working
MAIN is not a defined variable, soo i tried to hookit with the Application,
but no instance was found.

is Main refer to the main form (ie frmMain from a TForm) or is it a system
defined object?



Quote:
> Hi,

> Try:

>     Main.Visible := False;

> --Glenn


> > Hi
> > I'm programming with DELPHI 4 Professional

> > how can i hide the application in the taskbar leaving only an icon in
> > the
> > systray ( i already have the systray component, i only need to know
> > how to
> > hide the application)



Wed, 18 Jun 1902 08:00:00 GMT
 Hiding the application in the taskbar
Sorry, that was a bit ambiguous.  What I meant was set the visible
property of the form you want to hide to False. This is frequently named
Main, but not necessarily, it could be Form1 for all I know.  You'll
know best. If your in a method of the form when you need to do this,
just use Visible := False, Self is implied.

--Glenn

Quote:

> Thanks for the quick answer
> Unfortunatly, it's not working
> MAIN is not a defined variable, soo i tried to hookit with the
> Application,
> but no instance was found.

> is Main refer to the main form (ie frmMain from a TForm) or is it a
> system
> defined object?


> :

> > Hi,

> > Try:

> >     Main.Visible := False;

> > --Glenn


> > > Hi
> > > I'm programming with DELPHI 4 Professional

> > > how can i hide the application in the taskbar leaving only an icon
> in
> > > the
> > > systray ( i already have the systray component, i only need to
> know
> > > how to
> > > hide the application)



Wed, 18 Jun 1902 08:00:00 GMT
 Hiding the application in the taskbar

Quote:

> Hi,

> Try:

>     Main.Visible := False;

> --Glenn


> > Hi
> > I'm programming with DELPHI 4 Professional

> > how can i hide the application in the taskbar leaving only an icon in
> > the
> > systray ( i already have the systray component, i only need to know
> > how to
> > hide the application)

What about ShowWindow(Application.Handle,SW_HIDE); ?
___________________________________________________________________
Heimo Veps?      North Ostrobothnia Regional Environment Centre
                 P.O.Box 124, 90101 OULU, Finland


Wed, 18 Jun 1902 08:00:00 GMT
 Hiding the application in the taskbar

Quote:
> how can i hide the application in the taskbar leaving only an icon in the
> systray ( i already have the systray component, i only need to know how to
> hide the application)

Here's the simplest way:

 ShowWindow(Application.Handle, SW_HIDE );SetWindowLong( Application.Handle,
GWL_EXSTYLE,
   GetWindowLong(Application.Handle, GWL_EXSTYLE) or WS_EX_TOOLWINDOW and
not WS_EX_APPWINDOW);  ShowWindow(Application.Handle, SW_SHOW );

-----------------

Quote:
>What about ShowWindow(Application.Handle,SW_HIDE); ?

That works, but it reappears everytime the main form is shown.

--
Eric Lawrence
Applications Architect
Bayden Systems

--------------------------------------------------------
"I may disagree with what you say, but I will
defend to the death your right to say it."
--------------------------------------------------------



Wed, 18 Jun 1902 08:00:00 GMT
 Hiding the application in the taskbar
Hi,

The simplest way to do this is moving your application to a off-screen
location as follows :

with MainForm do
  MoveWindow(Handle, -100, -100, Width, Height, False);

of course you must replace MainForm with your application's main form
name and
also depending on
your main form's size change -100 to a value so that all of your main
form
stays in a off-screen
location.

Regards,

Amir

Quote:

> Hi
> I'm programming with DELPHI 4 Professional

> how can i hide the application in the taskbar leaving only an icon in the
> systray ( i already have the systray component, i only need to know how to
> hide the application)



Wed, 18 Jun 1902 08:00:00 GMT
 
 [ 7 post ] 

 Relevant Pages 

1. How to Hide the Taskbar in Windows?

2. Hiding Taskbar entry.

3. Hiding Win95 taskbar from FPW2.6

4. Hiding App in the Taskbar

5. Running application on taskbar..

6. How to hide an application ?

7. [5.0] hide application different from [win][4.5]

8. CoolHide - Help you hide/minimize window to Tray and hide icons from the system tray

9. Hiding the Win95 Taskbar. Just a small problem (I hope)

10. modal window and taskbar

11. Taskbar

12. How do I put icons on the taskbar?


 
Powered by phpBB® Forum Software