Who's Online
51 user(s) are online (
27 user(s) are browsing
Forums )
Members: 0
Guests: 51
more...
Headlines
stella.lha - emulation/gamesystem
Dec 25, 2025
amigagpt.lha - network/chat
Dec 22, 2025
flare-game.lha - game/action
Dec 21, 2025
shadernova.lha - graphics/misc
Dec 21, 2025
iptv85.lha - video/misc
Dec 21, 2025
dirmeup_demo.lha - utility/filetool
Dec 20, 2025
capslock_cmd.lha - utility/workbench
Dec 20, 2025
amiarcadia.lha - emulation/gamesystem
Dec 19, 2025
sdl3.lha - library/misc
Dec 19, 2025
vault.lha - network/misc
Dec 19, 2025
Topic options
View mode
Newest First
I have a question how do I add Iconify Icon in top border of a window?
Posted on:
2014/11/1 17:42
#1
Home away from home
Joined: 2006/11/20 16:26Last Login
: 2025/12/24 11:33
From Norway
Group:
Registered Users
I have a question how do I add Iconify Icon in top border of a window? I know it has be a Reaction image button, to get align flags to work.
(NutsAboutAmiga) Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.
Re: I have a question how do I add Iconify Icon in top border of a window?
Posted on:
2014/11/1 18:14
#2
Amigans Defender
Joined: 2009/5/1 17:57Last Login
: Today 8:18
From Czech Republic
Group:
Registered Users Staff members Moderators
@LiveForIt In a ReAction window you simply pass WINDOW_IconifyGadget, TRUE in the object definition.
The
Rear Window blog
AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
Re: I have a question how do I add Iconify Icon in top border of a window?
Posted on:
2014/11/1 18:59
#3
Home away from home
Joined: 2006/11/20 16:26Last Login
: 2025/12/24 11:33
From Norway
Group:
Registered Users
@trixie it's a normal window.
(NutsAboutAmiga) Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.
Re: I have a question how do I add Iconify Icon in top border of a window?
Posted on:
2014/11/1 19:06
#4
Home away from home
Joined: 2006/11/20 16:26Last Login
: 2025/12/24 11:33
From Norway
Group:
Registered Users
@LiveForIt fixed this is solved.
(NutsAboutAmiga) Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.
Re: I have a question how do I add Iconify Icon in top border of a window?
Posted on:
2014/11/1 20:39
#5
Home away from home
Joined: 2006/12/4 23:15Last Login
: 2025/12/23 9:26
Group:
Registered Users
Solved for you but what about the next person that needs to know?
Some excerpts from the AWeb code showing how to get the right image and create a title bar gadget from the buttongclass.
'win' is just a AWeb struct holding various window related data.
if(!( win -> iconify_img =( struct Image *) NewObject ( NULL , "sysiclass" ,
SYSIA_DrawInfo , drinfo ,
SYSIA_Which , ICONIFYIMAGE ,
TAG_END ))) return FALSE ;
....
....
....
if ( NULL != win -> iconify_img )
{
win -> iconify_gad = NewObject ( NULL , "buttongclass" ,
GA_RelRight , TRUE ,
GA_Titlebar , TRUE ,
GA_Image , win -> iconify_img ,
GA_RelVerify , TRUE ,
GA_ID , GID_ICONIFY ,
ICA_TARGET , ICTARGET_IDCMP ,
TAG_END );
if ( NULL != win -> iconify_gad )
AddGadget ( win -> window , win -> iconify_gad , 0 );
}
In you window event loop do like so...
case IDCMP_GADGETUP :
if ( GID_ICONIFY == (( struct Gadget *) msg -> IAddress )-> GadgetID )
Iconify ( TRUE );
break;
Re: I have a question how do I add Iconify Icon in top border of a window?
Posted on:
2014/11/1 23:34
#6
Home away from home
Joined: 2006/11/30 18:43Last Login
: 2025/12/5 18:21
From Norway
Group:
Registered Users
@LiveForIt
What do you need this for?
Quote:
I have a question how do I add Iconify Icon in top border of a window? I know it has be a Reaction image button, to get align flags to work.
X5000
Re: I have a question how do I add Iconify Icon in top border of a window?
Posted on:
2014/11/1 23:52
#7
Home away from home
Joined: 2006/11/20 16:26Last Login
: 2025/12/24 11:33
From Norway
Group:
Registered Users
@Antique Well spying on me again are we? Ok I always wonted to know how to put icons in border like that, I have not really needed it before now.
(NutsAboutAmiga) Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.
Re: I have a question how do I add Iconify Icon in top border of a window?
Posted on:
2014/11/2 7:12
#8
Amigans Defender
Joined: 2009/5/1 17:57Last Login
: Today 8:18
From Czech Republic
Group:
Registered Users Staff members Moderators
@LiveForIt On a side note: don't be afraid to ask programming-related questions at OS4coding.net. Only then can we build a useful resource & learning centre like the dead good UtilityBase (which I still miss very much!). Of course you'll get your answer in a forum like this one, but for other people who may later be struggling with a similar problem, things will be easier to find in a dedicated place.
The
Rear Window blog
AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
Re: I have a question how do I add Iconify Icon in top border of a window?
Posted on:
2014/11/3 2:50
#9
Home away from home
Joined: 2006/11/20 16:26Last Login
: 2025/12/24 11:33
From Norway
Group:
Registered Users
@trixie I found the how to on OS4coding.net, I already have too many user accounts. It be nice if some on added some pages to Amiga wiki pages about this, I think.
(NutsAboutAmiga) Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.
Re: I have a question how do I add Iconify Icon in top border of a window?
Posted on:
2014/11/3 2:51
#10
Home away from home
Joined: 2006/11/20 16:26Last Login
: 2025/12/24 11:33
From Norway
Group:
Registered Users
@broadblues The code I found was a bit RAW, that's way I did not post anything, about it here.
(NutsAboutAmiga) Basilisk II for AmigaOS4 AmigaInputAnywhere Excalibur and other tools and apps.
Re: I have a question how do I add Iconify Icon in top border of a window?
Posted on:
2014/11/3 22:52
#11
Just can't stay away
Joined: 2007/2/6 13:57Last Login
: Today 11:36
From Donostia (SPAIN)
Group:
Registered Users
@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 );
...
Re: I have a question how do I add Iconify Icon in top border of a window?
Posted on:
2018/2/8 19:38
#12
Just can't stay away
Joined: 2007/7/14 20:30Last Login
: 2025/12/22 16:53
From Lothric
Group:
Registered Users
Thanks, this thread was useful. Is Aweb / Mixer code available in some public version control? It would be nice to see also gadget disposal examples.
Re: I have a question how do I add Iconify Icon in top border of a window?
Posted on:
2018/2/8 20:18
#13
Home away from home
Joined: 2007/9/11 11:31Last Login
: 2025/12/4 16:00
From Russia
Group:
Registered Users
@Capehil
Quote:
Thanks, this thread was useful. Is Aweb / Mixer code available in some public version control? It would be nice to see also gadget disposal examples.Mixer source included in archive itself:
http://os4depot.net/share/audio/misc/mixer.lha
Re: I have a question how do I add Iconify Icon in top border of a window?
Posted on:
2018/2/9 0:40
#14
Home away from home
Joined: 2006/12/4 23:15Last Login
: 2025/12/23 9:26
Group:
Registered Users
Currently Active Users Viewing This Thread:
1
(
0 members
and 1 Anonymous Users
)