[Gambas-user] Help SystemTray gb-qt5 64 bits

herberth guzman herberthguzman at gmail.com
Wed Apr 1 21:21:05 CEST 2020


X11 Classic
gb-qt5 BAD
gb-qt4 OK

Public Sub _new()

Shell "vlc"
Shell "nm-applet"

End

Public Sub Form_Open()

  X11Systray.Show(dwgSystemTray.Handle)

End

Static Public Sub X11Systray_Arrange()

  FMain.ArrangeTray

End

Public Sub ArrangeTray()

  Dim I As Integer
  Dim X, Y, H As Integer

  Debug
  X = 2
  Y = 2
  For I = 0 To X11Systray.Count - 1
    With X11Systray[I]
      Debug I;; .IconW;; .IconH
      If (X + .IconW) >= (Me.ClientW - 2) Then
        X = 2
        Y += H + 2
        H = 0
      Endif
      .Move(X, Y, .IconW, .IconH)
      H = Max(H, .IconH)
      X += .IconW + 2
    End With
  Next

End

Public Sub Form_Resize()

  ArrangeTray

End






El mié., 1 abr. 2020 a las 13:13, Benoît Minisini (<g4mba5 at gmail.com>)
escribió:

> Le 01/04/2020 à 21:05, herberth guzman a écrit :
> >
> >>>What does not work exactly?
> >
> > I have a classic system tray (x11)
> > with ubuntu 32 bits and gb-qt4 it works fine for me
> >
> > with ubuntu 64 bit and gb-qt5 it doesn't work
> > does not show anything in the system tray
> >
> > Error:
> > qt.qpa.xcb: Unhandled client message: "_NET_WM_DESKTOP"
> > FMain.ArrangeTray.28:
> >
>
> If you don't give more details, I can't help. Which system? Which
> desktop? How do you implement the system tray? Did you implement X11
> protocol, DBus protocol, both? And so on...
>
> --
> Benoît Minisini
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200401/b330a910/attachment.html>


More information about the User mailing list