Author Topic: Icons per file extension  (Read 6065 times)

gamba

  • Guest
Icons per file extension
« 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

Greggory Shaw

  • Sr. Member
  • ****
  • Posts: 442
  • Karma: +0/-0
    • View Profile
Re: Icons per file extension
« Reply #1 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"
« Last Edit: August 25, 2015, 03:47:32 pm by Greggory Shaw »

gamba

  • Guest
Re: Icons per file extension
« Reply #2 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.

Andreas Schnellbacher

  • Hero Member
  • *****
  • Posts: 827
  • Karma: +14/-0
    • View Profile
Re: Icons per file extension
« Reply #3 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.
« Last Edit: August 25, 2015, 10:11:03 pm by Andreas Schnellbacher »

gamba

  • Guest
Re: Icons per file extension
« Reply #4 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!

Jan-Erik Lärka

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 275
  • Karma: +5/-0
    • View Profile
Re: Icons per file extension
« Reply #5 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