Uses 911K of libraries. Click here for Pure Java version (9316L/48K).
!7 // class name not up to date anymore cmodule ScreenShootClosestModule > DynImageSurface { S moduleIDAndName; switchable bool withFrame = true; visual withCenteredButtons(northAndCenterWithMargins( withCenteredTitle("Module to shoot:", dm_moduleSelectorComboBox(dm_fieldLiveValue('moduleIDAndName))), super), dm_checkBox withFrame(), "Shoot!", rThread doIt); void doIt enter { fO module = dm_getModuleFromComboBox(moduleIDAndName); if (module == null) ret; setImage(dm_shootModule(module, withFrame)); dm_showModule(); } start { dm_onAnyModulePopupMenu(voidfunc(JPopupMenu menu, S mod) enter { addMenuItem(menu, "Take screenshot of module", rThread { // TODO: select in combobox setImage(dm_shootModule(mod, withFrame)); dm_showModule(); }); }); } }
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1016330 |
| Snippet name: | Take screenshot of module (screen-shoot a module) |
| Eternal ID of this version: | #1016330/23 |
| Text MD5: | bb2929c0086fb03ee70462c6eefd56c2 |
| Transpilation MD5: | 342c31efecbbe689916db92ceb86989d |
| Author: | stefan |
| Category: | javax / html |
| Type: | JavaX source code (Dynamic Module) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-05-06 22:44:39 |
| Source code size: | 854 bytes / 30 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 959 / 43051 |
| Version history: | 22 change(s) |
| Referenced in: | -