OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: gamba on August 25, 2015, 03:01:21 pm

Title: Icons per file extension
Post by: gamba on August 25, 2015, 03:01:21 pm
Hi all,

it's lot of years since I started using OS/2, but this is still an open question for me. Is it possible to associate an icon to a file extension, like we do for a program? If I browse my C:\ecs\icons\BIGICONS directory, I see, for example:

file_archive_128px.png
file_archive_arj_128px.png
file_archive_rar_128px.png
file_archive_wpi_128px.png
file_archive_zip_128px.png

All the above file extensions are associated to the same program (that here is Zippy), and file_archive_128px.png is the icon for Zippy. How can I associate the other icons to *.arj/rar/wpi/zip files?

Bye
Gabriele
Title: Re: Icons per file extension
Post by: Greggory Shaw on August 25, 2015, 03:35:55 pm
Under the TYPE section in the bigicon.txt file:

[TYPE]
"Plain Text"           "file_text_ico.png"
"PDF File"             "pdf_ico.png"
"Acrobat Document"     "pdf_ico.png"

"AVI"                  "file_video_avi_ico.png"
"FLI/FLC"              "file_video_fli_ico.png"
"QuickTime Movie"      "file_video_mov_ico.png"
"MPEG"                 "file_video_mpg_ico.png"
Title: Re: Icons per file extension
Post by: gamba on August 25, 2015, 04:34:12 pm
Under the TYPE section in the bigicon.txt file:
...

Thanks Greggory! So this is a feature from PNG Desktop, not feasible in a plain Warp installation.
Title: Re: Icons per file extension
Post by: Andreas Schnellbacher on August 25, 2015, 10:03:26 pm
Default icons are defined in WPS classes. The other method is to create one program object of a useful application (Zippy in your case) per extension. Assign to each of these program objects a different icon and program name. In the properties of each program object, under Association -> New Name, add the desired extension. After that, remove the previous association from the original Zippy program object.

To make the changes take effect, restart the WPS or right-click a file with one of these extensions.

Note that with Warp 4.x without extensions the icon size is limited to 40x40 (or 32x32) and must be in the OS/2 icon format.
Title: Re: Icons per file extension
Post by: gamba on September 01, 2015, 11:32:03 am
Hi Andreas,

it took a reboot to change the icons, but in the end the trick worked fine, thanks!
Title: Re: Icons per file extension
Post by: Jan-Erik Lärka on September 01, 2015, 11:43:03 am
Rename the program object or file after you've added/changed the .png file it should display.

I've improved my OpenWeather rexx script and it can animate the wps object quite nicely.  ;D

//Jan-Erik