Hi Rolf, I needed something similar and what I did is creating a new module and setting it as the "startup class", then in order to prevent the application ending straightly (after creating/showing the trayicon), I used Fmain "Persistent" property to force the application stay loaded... so in your case, even if there is a bug ¿? in your version of KDE, it will not be showing the form and so, there will be no need to hide it. (may be it is not the best solution, but it works for me!)
Here is a sample of what you could code this startup module: PUBLIC FUNCTION Main() AS Boolean DIM tryicn AS TrayIcon tryicn = NEW TrayIcon AS "tryicn" tryicn.Show() tryicn.Visible = TRUE tryicn.Picture = Picture["agendaxml.png"] FMain.Persistent = TRUE END PUBLIC SUB tryicn_dblclick() FMain.Persistent = FALSE FMain.Close END Regards, Toni En/na Rolf-Werner Eilert ha escrit: > Benoit Minisini schrieb: > >> On mercredi 10 décembre 2008, Rolf-Werner Eilert wrote: >> >>> Hi folks, >>> >>> meanwhile I've understood how to use the TrayIcon, but if my application >>> should show only the tray icon, no application window, how can I hide >>> the whole thing (except the tray icon, of course)? >>> >>> Thanks for your advice! >>> >>> Rolf >>> >>> >> FMain.Hide ? >> >> > > This is what I tried, and I tried setting FMain.Visible = False and so > on - no help, it just shows up on screen. > > It is shown when started in the IDE and when started as an executable as > well. > > Seems this has to do with my KDE version, like the other thing we > discussed yesterday... > > Rolf > > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. > The future of the web can't happen without you. Join us at MIX09 to help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user