[Gambas-user] About trayIcon popupmenu.

Gianluigi bagonergi at ...626...
Sat Oct 29 14:07:02 CEST 2016


Jorge,
thanks to you, a much more efficient trick of this:

Public Sub Form_Show()

     Me.Visible = False

End

which I used until now.

Regards
Gianluigi

2016-10-29 10:36 GMT+02:00 Jorge Carrión <shordi at ...626...>:

> Gianluigi and Demostenes:
>
> I've follow the conversation between both of you and I undestand now. How
> it works. I was confused because of Benoit old example wich uses a Module
> instead a Form.
>
> I think the trick is to make a little Form with Border=False,
> transparent=true, skiptaskbar=true, with menu's editor make the popmenu and
> set the tryIcon property popupmenu as de menu name.
>
> Both events Click with left button and the pop of the menu with the right
> button, works fine.
>
> All is clear now. Thank you both very much.
>
> Best Regards
>
> 2016-10-28 19:08 GMT+02:00 Demosthenes Koptsis <demosthenesk at ...626...>:
>
> > See at Application Farm, the VirtualDVD project.
> >
> > It implements the sys tray icon with a popup menu
> >
> >
> > On 10/28/2016 07:49 PM, Gianluigi wrote:
> > > Hi Jorge,
> > > not sure I understand.
> > > Had you seen this post? [0]
> > > Regards
> > > Gianluigi
> > >
> > > [0] http://gambas.8142.n7.nabble.com/Menu-has-no-Click-event-
> > td57442.html
> > >
> > > 2016-10-28 18:01 GMT+02:00 Jorge Carrión <shordi at ...626...>:
> > >
> > >> This is the code of the old trayIcon example from Benoit..
> > >>
> > >> Private $hTrayIcon As TrayIcon
> > >>
> > >> Public Sub Main()
> > >>
> > >>    $hTrayIcon = New TrayIcon As "TrayIcon"
> > >>    $hTrayIcon.Show
> > >>
> > >> End
> > >>
> > >> Public Sub TrayIcon_MouseDown()
> > >>
> > >>    $hTrayIcon.Hide
> > >>
> > >> End
> > >>
> > >> It works for me except the MouseDown event, that works now with Click
> > >> Event.
> > >> Ok.
> > >> There isn't any Form here... How the PopupMenu property is suposed to
> be
> > >> implemented? A Menu needs a Form as parent as I know...
> > >>
> > >> Best Regards.
> > >> ------------------------------------------------------------
> > >> ------------------
> > >> The Command Line: Reinvented for Modern Developers
> > >> Did the resurgence of CLI tooling catch you by surprise?
> > >> Reconnect with the command line and become more productive.
> > >> Learn the new .NET and ASP.NET CLI. Get your free copy!
> > >> http://sdm.link/telerik
> > >> _______________________________________________
> > >> Gambas-user mailing list
> > >> Gambas-user at lists.sourceforge.net
> > >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >>
> > > ------------------------------------------------------------
> > ------------------
> > > The Command Line: Reinvented for Modern Developers
> > > Did the resurgence of CLI tooling catch you by surprise?
> > > Reconnect with the command line and become more productive.
> > > Learn the new .NET and ASP.NET CLI. Get your free copy!
> > > http://sdm.link/telerik
> > > _______________________________________________
> > > Gambas-user mailing list
> > > Gambas-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
> > ------------------------------------------------------------
> > ------------------
> > The Command Line: Reinvented for Modern Developers
> > Did the resurgence of CLI tooling catch you by surprise?
> > Reconnect with the command line and become more productive.
> > Learn the new .NET and ASP.NET CLI. Get your free copy!
> > http://sdm.link/telerik
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> ------------------------------------------------------------
> ------------------
> The Command Line: Reinvented for Modern Developers
> Did the resurgence of CLI tooling catch you by surprise?
> Reconnect with the command line and become more productive.
> Learn the new .NET and ASP.NET CLI. Get your free copy!
> http://sdm.link/telerik
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list