I have not spent too much time on the issue, because I am very busy. But I really want to make an iconify gadget for all Qt windows for the next release. I have searched intuition.h, but I can't seem to find a tag for an iconify gadget. Do I really have to use reaction to get one?
Mon, 2013-06-24 01:01
#1
Iconify
No, window.class just makes the job a little easier. All you have to do is create "buttongclass" gadget with GA_Image set to a "sysiclass" image with SYSIA_Which set to ICONIFYIMAGE and add it to the titlebar.
I wrote some code for doing that here (see CLCalc/iconify.c):
https://dl.dropboxusercontent.com/u/26599983/clcalc-wip-src.7z
Hi alfkil,
There's example code in the SDK for opening an app window that
includes iconification functionality:
SDK:Examples/ReAction/os4examples/Window/AppWindow.c
Good luck,
PJS
@salas00
Thanks :)
It seems that all of the above and my own Qt code suffers from some problem: Iconfication works fine, double clicking the icon to reopen the window works fine. But when trying to open a context menu for the AppIcon, I get a crash in every case. I can skip the crash, but it is most inconvenient. Has anyone tried this? Why does it happen? Is there a fix for it?
It's known bug of ContextMenu that it crashes on non-disk object icons, i.e. app icons, NDOS disk icons etc.
(At least it was discussed before, I don't know if it was reported officially, too).
Just use the title bar menu instead.