@broadblues
Yep, using same code in MIXER
...
#define GID_ICONIFY 401
#include <intuition/sysiclass.h>
// iconify gadget
struct DrawInfo *DRI;
struct Image *IcoImg;
struct Gadget *IcoGad;
...
DRI = IIntuition->GetScreenDrawInfo(MainScreen);
IcoImg = (struct Image *)IIntuition->NewObject(NULL, "sysiclass",
SYSIA_DrawInfo,DRI, SYSIA_Which,ICONIFYIMAGE,
TAG_END);
IcoGad = (struct Gadget *)IIntuition->NewObject(NULL, "buttongclass",
GA_ID,GID_ICONIFY, GA_RelVerify,TRUE, GA_Image,IcoImg,
GA_TopBorder,TRUE, GA_RelRight,0, GA_Titlebar,TRUE,
TAG_END);
IIntuition->AddGadget(MixWindow, IcoGad, -1);
...