Announcement

Collapse
No announcement yet.

[BUG] Destroy system tray icon but no close

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [BUG] Destroy system tray icon but no close

    Global:
    PHP Code:
    _PopupMenu = {
        [
    1] = {
            
    ID 100,
            
    Text "Exit",
        },
    }

    function 
    g_OnSystemTrayMenu(XY)
        
    PopMenu(Application.ShowPopupMenu(XY_PopupMenuTPM_RIGHTALIGNTPM_BOTTOMALIGNtruefalse));
    end

    function PopMenu(n)
        if 
    == 100 then -- exit
            
    Application.Exit();
        
    end
    end 
    - Change Tasbar (System tray - Project Setting)
    - Create any object with script to show DialogEx
    PHP Code:
    -- Button1
    DialogEx
    .Show("Dialog1"); 
    - 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

  • #2
    Not tested ur code but update two 8.2 as it looks like even the fourm has been updated
    I had problems with the dialogex windows not closing the software with app exit so i close it the unclean way os.exit when them app exit is not doing what i want it to do
    Plugins or Sources MokoX
    BunnyHop Here

    Comment


    • #3
      os.exit ([code])
      Calls the C function exit, with an optional code, to terminate the host program. The default value for code is the success code.
      With that problem, I use DialogEx.Close(<code back>); and check after DialogEx.Show.
      Other way, I use timer with a variable (change when user click exit) to detected when user exit app from DialogEx -> Close App from page.
      Until now, I think we just can break the rule -_-"

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎