Hello,
i follow your suggestion, and i think is easier to create with IDE the
menu and after assign it to TrayIcon.
Thanks for the hack
On 3/10/2016 22:25 μμ, Gianluigi wrote:
> I think it's better to create the menu with the IDE gambas.
> Create the TrayIcon as in this thread [0] and close
Try this code (creating the menu with the IDE gambas):
' Gambas class file
Public $hTray As TrayIcon
Public Sub _new()
$hTray = New TrayIcon As "tyIcon"
'$hTray.Icon = Picture["griG.png"]
$hTray.PopupMenu = "myMenu"
$hTray.Show
myMenu.Hide
End
Public Sub Form_Open()
Me.Close
End
If i create the Menu with IDE Gambas it will be a menu on top of the form.
Creating the menu by code it is ok now.
The only change to work was to add at the end of New() the event name
hMenu = New Menu(Me, True) As "RootMenu"
hMenu2 = New Menu(hMenu) As "Menu2"
hMenu3 = New Menu(hMenu) As "
I think it's better to create the menu with the IDE gambas.
Create the TrayIcon as in this thread [0] and close the window into
Form_Open.
[0] http://gambas.8142.n7.nabble.com/TrayIcon-question-td55955.html
2016-10-03 21:16 GMT+02:00 Demosthenes Koptsis :
> Hi,
>
> i try to Run the systray proje
Hi,
i try to Run the systray project in Linux Mint 18 Mate x64, edition
and i get
"sni-qt/3330" WARN 22:10:44.398 void
StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE
finally the project cannot run
-