Iconify

6 posts / 0 new
Last post
alfkil
alfkil's picture
Offline
Last seen: 3 months 3 days ago
Joined: 2011-05-10 22:02
Iconify

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?

salass00
salass00's picture
Offline
Last seen: 6 months 1 week ago
Joined: 2011-02-03 11:27
Do I really have to use


Do I really have to use reaction to get one?

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

PJS
PJS's picture
Offline
Last seen: 4 years 10 months ago
Joined: 2012-12-09 18:38
Hi alfkil, There's example

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

alfkil
alfkil's picture
Offline
Last seen: 3 months 3 days ago
Joined: 2011-05-10 22:02
@salas00 Thanks :)

@salas00

Thanks :)

alfkil
alfkil's picture
Offline
Last seen: 3 months 3 days ago
Joined: 2011-05-10 22:02
It seems that all of the

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?

thomas
thomas's picture
Offline
Last seen: 3 months 1 week ago
Joined: 2011-05-16 14:23
It's known bug of ContextMenu

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.

Log in or register to post comments