Page 1 of 1

AddSysTrayIcon + Raspberry = fails

Posted: Sun Nov 03, 2024 1:02 pm
by AZJIO
I downloaded Raspberry here to compile my programs on it and there are some errors. First link "Raspberry Pi OS with desktop" (ARM32). "Raspberry Pi 4 B" screenshot.

The SysTrayIconToolTip() line caused a failure and I used a condition to check.

Code: Select all

SysTrayIconToolTip(#SysTrayIcon, "SaveFolders")
Condition before use

Code: Select all

If AddSysTrayIcon(#SysTrayIcon, WindowID(#Window), ImageID(0))
	SysTrayIconToolTip(#SysTrayIcon, "SaveFolders")
EndIf
I checked that ImageID(0) returns a non-zero number.
No program using AddSysTrayIcon() produced any results.

Re: AddSysTrayIcon + Raspberry = fails

Posted: Sun Nov 03, 2024 1:37 pm
by mk-soft
Is a simple problem. The Gnome Systray does not work either.
This is because the LXPanel under Wayland not supports the libappindicator3 icons.

To do this, go to ‘sudo raspi-config’ -> Menu 6 -> switch to X11.

Further info:
Link: viewtopic.php?t=83716
Link: viewtopic.php?t=82948

Furthermore, mouse clicks are no longer supported. This is not due to PureBasic but to the linappindicator3. Here mouse clicks on the SysTray are not passed on as an event.
In addition, SysTrayIconMenu must be called so that the SysTray is displayed.