SetWBIcon(icon$[, ...])
*.info
format. All icons that
the currently installed Workbench can read are supported. Thus, if you
are on MorphOS or are using an appropriate patch, you could also use
PNG icons here.
For best compatibility, however, you should stick to standard icons in the GlowIcon format.
The following special constants can be passed to icon$
:
#AMIGAICON_NONE:
#AMIGAICON_SHOW:
#AMIGAICON_HIDE:
#AMIGAICON_SETTITLE:
#AMIGAICON_SETPOSITION:
*.info
file. (V6.1)
Note that you might need to call SetWBIcon()
several times in order to
achieve the desired effect. For example, if you'd like to change the app icon
and show it permanently, you first have to call SetWBIcon()
to set the *.info
file to show and then you have to call SetWBIcon()
again and pass #AMIGAICON_SHOW
to permanently show your app icon.
SetWBIcon("MyCoolProg.info")This code uses the program's icon as its default WB icon.