![]() Mageia Enlightenment also requires an AppIndicator library and enabling System Tray in Settings->Modules and then adding that System Tray to a Shelf (all terms familiar to Enlightenment users). Developers of new (Linux) applications are advised to design their program around TrayIcon using only a popUpMenu !.On Gnome desktops, an additional item is needed, gnome-shell-extension-appindicator must be installed and enabled.A number of prominent distributions appear to be pre installing a AppIndicator but you cannot assume. An AppIndicator library must be installed, until recently, that was libappindicator3 but now many distros are moving to libayatana.If your app depends on one of those secondary responses, and you don't have a Gnome Desktop, you may try to force Lazarus to use the traditional SysTray, see below. ![]() No double click, no drag, no right click, no hint. The AppIndicator is intentionally a much simpler user interface.Only if that fails will it try for a traditional System Tray. Lazarus 2.2 (or fixes, main), now looks for an AppIndicator first and uses that if it it finds one. There are now two ways the GTK2 SysTray component tries to show its icon, the traditional System Tray and an AppIndicator library. This problem is a particular issue with Gnome but some other Desktops may also suffer. Some Linux systems will have trouble displaying the GTK TrayIcon, in general this relates to a move away from the System Tray model that Lazarus TrayIcon is based on. To start quickly, please read the demonstration program. In use, drag the TrayIcon onto your form, assign an icon to it, assign a popup menu (with at least one menu item) to it and call its Show method It can be made work with Gnome but perhaps that's despite the Gnome Developers efforts. It works reliably on Windows, MacOS and Linux (and similar) with all desktops except the Gnome Desktop. You can find TrayIcon on the Additional tab of the Component Palette (0.9.23+). TTrayIcon is a multiplatform System Tray component. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |