14 January 2014, 21:19 | #1 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
Posts: 450
|
How to add an Iconify-Gadget to a Window?
Well, easy little question. Some Windows have an Iconify-Gadget. As far I know these are custom. So, how to add one?
|
14 January 2014, 21:45 | #2 |
Paranoid Amigoid
Join Date: Mar 2008
Location: Athens/Greece
Age: 45
Posts: 1,978
|
I'm not sure 100% but AFAIK the iconify gadget is a feature of MUI programs where you can either enable it globaly on MUI prefs, or per program using it's own MUI prefs.
|
14 January 2014, 21:49 | #3 |
Global Moderator
Join Date: Aug 2008
Location: Sidcup, England
Posts: 10,300
|
A windows iconify gadget is also a feature of ScalOS, IIRC.
|
14 January 2014, 21:51 | #4 |
XoXo/Tasko Developer
Join Date: Dec 2013
Location: Munich
Age: 49
Posts: 450
|
That's good. So it somehow works. Question is: How can I code such?
|
14 January 2014, 22:33 | #5 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,026
|
Create a gadget and put it into the top border. It's the same procedure as you did with the scroll bars.
Positioning is a bit tricky. As is sizing. You better supply a BOOPSI image to the gadget rather than a static struct Image because BOOPSI images can automatically adjust their size. For correct positioning you have to consider the gadgets which already are in the top right border. There is a multi-purpose BOOPSI image in Aminet: http://aminet.net/package/dev/gui/titlebar_ic The TBITest.c example also shows how to create an iconify gadget. Here is another example with a self-written BOOPSI image class: http://thomas-rapp.homepage.t-online...s/iconifygad.c |
15 January 2014, 15:41 | #6 |
Coder/webmaster/gamer
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,673
|
You give the WINDOW_IconifyGadget tag to window.class when opening the window. See the OS3.9 NDK for the autodocs. No MUI-crap required.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Where can I get the Progress.gadget from? | Tony Landais | request.Apps | 6 | 16 December 2015 19:16 |
Can't find Close gadget in full-screen mode | garyg | support.WinUAE | 1 | 11 August 2010 20:19 |
Gadget/Layout.gadget V44 | ruliovega | support.Apps | 6 | 02 January 2006 11:50 |
My amiga freezes because of select.gadget prefs??? | keropi | support.Apps | 5 | 15 December 2005 11:27 |
|
|