[Lazarus] trayicon hide main form icon

shoKwave shokwave at gmx.net
Fri Nov 27 17:40:27 CET 2009


Manuel Galeote schrieb:
>
> Using Lazarus on Windows.
> Use a trayicon and have put into the event formresize following form:
> frmprincipal.Hide;
> TrayIcon1.Show;
> Then in the event of trayicon OnDblClick this:
> frmprincipal.Show;
> TrayIcon1.Show;
> The icon trayicon looks and performs its function correctly.
> The main form icon is always on the taskbar. How I make disappear when 
> the form is minimized?.
>
> ------------------------------------------------------------------------
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>   
I use:

  Form1.Hide;
  Form1.ShowInTaskBar:=stNever;
  TrayIcon1.Show;








More information about the Lazarus mailing list