Uses 1113K of libraries. Click here for Pure Java version (13448L/65K).
!7 cmodule MinimizeToTray > DynPrintLogAndEnabled { transient bool activating; start { JFrame f = getFrame(dm_desktopPane()); if (f == null) print("No frame found"); else { var action = r { if (!activating) if (enabled) f.setVisible(false); }; ownResource(tempOnFrameIconified(f, action)); if (isInIconifiedFrame(f)) if (enabled) f.setVisible(false); print("Minimize to tray installed"); } Runnable rShow = r { activating = true; try { activateFrame(dm_desktopPane(), windowsHack := false); } finally { activating = false; } }; S name = dm_osName(); dm_systemTrayIcon(dm_osIconID(), name, rShow, "Show " + name, rShow); } bool warnOnDelete() { true; } }
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, wnsclhtenguj, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1025639 |
Snippet name: | Minimize OS To Tray [OK] |
Eternal ID of this version: | #1025639/12 |
Text MD5: | 12baf60be4b4ea12dc3c076d05ef0a6b |
Transpilation MD5: | 60feb971109646878a44ebe5e206ac19 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-08-03 06:38:23 |
Source code size: | 835 bytes / 37 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 265 / 163994 |
Version history: | 11 change(s) |
Referenced in: | [show references] |