Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-11

trayicon hide main form icon

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Manuel Galeote

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?.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20091126/5d5f630c/attachment.html>

Reply by email

shoKwave
to Manuel Galeote
Show quoted text 20 lines
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 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

I use:

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

Reply by email

Manuel Galeote
to shoKwave

Yes I put it in form event .OnWindowStateChange and works.

if frmprincipal.WindowState = wsMinimized then
begin
      frmprincipal.Hide;
      frmprincipal.ShowInTaskBar := stNever;
	TrayIcon1.Show;
end;
Thanks.
Earlier message 38 lines
-----Mensaje original----- De: shoKwave [mailto:] Enviado el: viernes, 27 de noviembre de 2009 17:40 Para: Lazarus mailing list Asunto: Re: [Lazarus] trayicon hide main form icon 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 > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > I use: Form1.Hide; Form1.ShowInTaskBar:=stNever; TrayIcon1.Show; --

Reply by email