Global:
- Change Tasbar (System tray - Project Setting)
- Create any object with script to show DialogEx
- Keep dialogex exist and right click to system tray icon -> Exit
- App can't close because stuck with Dialog but Systray icon has been destroy
- AMS 8.1.0.0
PHP Code:
_PopupMenu = {
[1] = {
ID = 100,
Text = "Exit",
},
}
function g_OnSystemTrayMenu(X, Y)
PopMenu(Application.ShowPopupMenu(X, Y, _PopupMenu, TPM_RIGHTALIGN, TPM_BOTTOMALIGN, true, false));
end
function PopMenu(n)
if n == 100 then -- exit
Application.Exit();
end
end
- Create any object with script to show DialogEx
PHP Code:
-- Button1
DialogEx.Show("Dialog1");
- App can't close because stuck with Dialog but Systray icon has been destroy
- AMS 8.1.0.0
Comment