[Gambas-user] Hiding FMain not possible?

Benoit Minisini gambas at ...1...
Wed Dec 10 19:34:44 CET 2008


On mercredi 10 décembre 2008, Stefano Palmeri wrote:
> Il mercoledì 10 dicembre 2008 15:50:15 Rolf-Werner Eilert ha scritto:
> > 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
>
> I've the same problem under KDE 3.5.9. To solve I use the same
> solution explained by Toni. In a startup module I just put:
>
> ---------------------------------
> PUBLIC SUB Main()
>
>   FMain.Visible = FALSE
>
> END
> ---------------------------------
>
>
> Bye,
>
> Stefano
>

If your startup class is not a form, you don't have to do FMain.Visible = 
FALSE. Just create your TrayIcon there, and show FMain only if needed.

Regards,

-- 
Benoit Minisini




More information about the User mailing list