i move the Application to the tray and close the Form. This works perfectly in Windows.
But under MacOS nothing happens if i close the app. The App stays open.
Does jSystemTray works in MacOS? I want to move the app to the top Statusbar with the same behavior in windows.
B4X:
Sub MainForm_CloseRequest (EventData As Event)
tray.AddTrayIcon(icon1)
MainForm.Close
End Sub
B4X:
Sub Icon1_DoubleClick
tray.RemoveTrayIcon(icon1)
MainForm.show
End Sub
Yes and i figure out whats the problem.
it doesn't work if i call AddTrayIcon in the CloseRequest.
adding in Appstart works. But i want to add the icon when the form is closed, not the whole time.
This behavior only exists in MacOS
And when i close the app, the app minimize and the icon stays in the dock (even though I want to close the Form), but isnt accessible from the Dock. Is there no way to remove the icon from the Dock in MacOS?
right click the tray icon to open the form also doesn't work, and makes the app stop responding..i have to kill it. It seems that removeIconTray also doesn't work.
And when i close the app, the app minimize and the icon stays in the dock (even though I want to close the Form), but isnt accessible from the Dock. Is there no way to remove the icon from the Dock in MacOS?