OS4 DepotLogo by McFly 
(anonymous IP: 54.204.249.184,18) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 
 Categories

   o Audio (321)
   o Datatype (47)
   o Demo (176)
   o Development (487)
      o Cross (35)
      o Debug (8)
      o Edit (5)
      o Example (31)
      o Game (19)
      o Guitool (5)
      o Ide (6)
      o Install (0)
      o Language (34)
      o Library (243)
      o Misc (26)
      o Utility (75)
      o Webtool (0)
   o Document (19)
   o Driver (82)
   o Emulation (131)
   o Game (786)
   o Graphics (422)
   o Library (73)
   o Network (185)
   o Office (49)
   o Utility (734)
   o Video (56)

Total files: 3568

Full index file. Download
Recent index file. Download




 Links

  Amigans.net
  OpenAmiga
  Aminet
  UtilityBase
  IntuitionBase
  AmigaBounty


Support the site


 Readme for:  Development » Example » dropicondock.lha

Dropicondock

Description: Test program to show how to use AmiDock into a MUI
Download: dropicondock.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 55kb
Version: 1
Date: 26 Jun 09
Author: Gianfranco "ShInKurO" Gignina
Submitter: Gianfranco "ShInKurO" Gignina
Homepage: http://shinkuro.amiga.it
Requirements: ppc-amigaos >= 4.0.0;
Category: development/example
License: Other
Distribute: yes
Min OS Version: 4.0
FileID: 4918
 
Comments: 0
Snapshots: 0
Downloads: 116  (Current version)
116  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show content Show crashlogs Replace file 
DropIconDock is a simple MUI test program which uses a subclass of
MUIC_Application to interact with application.library and so AmiDock. 
This class is called appDockClass and it's implemented into appDockClass.c 
and appDocClass.h sources files which you find into this archive.

The appDockClass.c and appDockClass.h files contain what you have to use
to give your program AmiDock support on OS4.x, a basic documentation about
several attributes of this subclass is into appDockClass.h header.

To have AmiDock support into your MUI program you have to include these
two files and then open/close properly the application.library and 
layers.library and of course the include files of these libraries 
like I show you into main.c and sys.h files.

Instead to use an istance of MUIC_Application into your program, you
have to use an istance of appDockClass (obviously after you have 
created a mui custom class using function declared into appDockClass.h, 
see main.c file).

If you will set to FALSE MUIA_AppDock_NoIcon and will pass a valid value
to MUIA_Application_DiskObject, appDockClass will use the icon value of
that attribute as icon for AmiDock.
Obviously you can have a different icon from MUIA_Application_DiskObject, 
seting MUIA_AppDock_DockIcon attribute instead, in this way
appDockClass will distinguish these two icons. You can use 
MUIA_AppDock_DockIcon to change icon on AmiDock whatever you want.

You can use several application.library/AmiDock features like
MUIA_AppDock_DockIcon simply setting attributes of appDockClass, you read 
appDockClass.h to know what attributes you could use.

A nice feature appDockClass will give to your program is to
iconify/uniconify it from AmiDock with only a doubleclick on its 
docky icon, just try :-) The behaviour is similar to other modern platforms 
and finally your user will have a more ordered Workbench with a doubleclick 
on AmiDock (if only all programs would use this class ;D). 
This feature uses a special layers.library function which was introduced
with AmigaOS3.9 and I have no seen to use by nobody yet... sad! :)

Test program itself only shows a window in which you can drop icon and
than that icon will become the new one visualized on AmiDock, and you can
iconify/uniconify test program with a click on its amidock docky. 

This class is not perfect and miss some of application.library fetures
like blanker managment (I don't use it, so...), even if it would be simple to
insert even this support.

This class is Public Domain, even if I appreace if you send me enanchement to 
this class.

Copyright (c) 2004-2014 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment