AddSysTrayIcon + Raspberry = fails

Just starting out? Need help? Post your questions and find answers here.
AZJIO
Addict
Addict
Posts: 2183
Joined: Sun May 14, 2017 1:48 am

AddSysTrayIcon + Raspberry = fails

Post 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.
User avatar
mk-soft
Always Here
Always Here
Posts: 6242
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: AddSysTrayIcon + Raspberry = fails

Post 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.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply