Author Topic: How to restore Trash Can icon change ?  (Read 720 times)

Remy

  • Hero Member
  • *****
  • Posts: 912
  • Karma: +14/-1
    • View Profile
How to restore Trash Can icon change ?
« on: July 22, 2025, 06:36:12 am »
Hi !

Since I've got the icon bug (which occurs from time to time and seems to be related with xcenter use) after dynamic icon update, The Trash can icon no more changes from empty to full !

Any idea to restore this object icons ?
Thanks     

Rich Walsh

  • Sr. Member
  • ****
  • Posts: 411
  • Karma: +30/-0
  • ONU! (OS/2 is NOT Unix!)
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #1 on: July 24, 2025, 06:35:28 am »
The Trash can icon no more changes from empty to full ! Any idea to restore this object icons ?

The easiest way is to replace it.

From a commandline, run this to delete the existing one:

oo /d "<XWP_TRASHCAN>" f

Then, run this to recreate it. This is all on one line:

oo /n XWPTrashCan TrashCan "<WP_DESKTOP>" DEFAULTVIEW=DETAILS;ALWAYSSORT=YES;DEFAULTSORT=9;DETAILSCLASS=XWPTrashObject;SORTCLASS=XWPTrashObject;OBJECTID="<XWP_TRASHCAN>";

Remy

  • Hero Member
  • *****
  • Posts: 912
  • Karma: +14/-1
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #2 on: July 25, 2025, 07:38:45 pm »
Hi!

Trashcan was deleted and created again using previous command.
But I'm surprised that this didn't resolve the problem which happens since I installed the new dynamic png
The Trashcan always show empty TrashCan while I put into it several elements and when opening it, elements are into it but the TrashCan icon show empty !

Regards

Remy

  • Hero Member
  • *****
  • Posts: 912
  • Karma: +14/-1
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #3 on: July 26, 2025, 09:38:34 am »
Here is a screenshot.

The trashcan on the desktop shows empty while the opened trashcan view has files into it and the left corner icon (near mouse pointer) has the correct full trashcan ico !

Note: I found that my problem about lost icon on some folder which are added as a widget into my xcenter could be related to the use of OS4 PMMERGE
I put back original PMMERGE, restarted and re-installe + re-registered dynamic ico update followed by a WPS restart.
Then checked the trashcan, deleted it. Restart and then created it but the problem is the same as you can see into this screen cap   

Lars

  • Hero Member
  • *****
  • Posts: 1446
  • Karma: +72/-0
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #4 on: July 26, 2025, 11:28:25 am »
I suppose, the trash can is derived from WPFolder. I would hope that its settings notebook has two pages for closed and opened object. Maybe you   can reselect the icons.

Remy

  • Hero Member
  • *****
  • Posts: 912
  • Karma: +14/-1
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #5 on: July 26, 2025, 04:32:58 pm »
I suppose, the trash can is derived from WPFolder. I would hope that its settings notebook has two pages for closed and opened object. Maybe you   can reselect the icons.

No, there is no icon (open or close) settings 

Remy

  • Hero Member
  • *****
  • Posts: 912
  • Karma: +14/-1
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #6 on: July 26, 2025, 05:08:03 pm »
I just uninstalled dynamic ico 2.5.6 and trashcan works again !

The culprit is dynamic ico 2.5.6
(all new issue are linked to this package - lost of folder icons, trashcan full not working... each uninstall/install of this package provided the same bugs)
What is the purpose of WPPngCache class which doesn't exist under 2.5.2.2 ?

Returning to 2.5.2.2 under which all works very well without any bugs.
I'll reinstall 2.5.6 when a corrective is available

Could it be possible something into it doesn't work as supposed?
« Last Edit: July 26, 2025, 05:10:28 pm by Remy »

Rich Walsh

  • Sr. Member
  • ****
  • Posts: 411
  • Karma: +30/-0
  • ONU! (OS/2 is NOT Unix!)
    • View Profile
Re: How to restore Trash Can icon change ?
« Reply #7 on: Today at 07:50:08 pm »
I just uninstalled dynamic ico 2.5.6 and trashcan works again !
Could it be possible something into it doesn't work as supposed?

Given that no one else has reported this problem, nor your original problems with D.I. 2.56, nor other WPS issues we've worked on in the past, I have to assume there is something seriously non-standard about your system that is causing these issues.

It could be alternate versions of PMWP, PMMERGE, the various SOM dlls (possibly from installing VACPP), or some add-on you've been using for years. It's up to you to determine what _you_ did to _your_ system to trigger (not "cause") this bug. Without that info, there's almost nothing I can do to fix it because neither I nor seemingly anyone else can duplicate it.

Quote
What is the purpose of WPPngCache class which doesn't exist under 2.5.2.2 ?

WPPngCache is the first new SOM/WPS code in at least 10 years that actually _does_ something beside put pages in a notebook.

The first time any class or object is asked to display its unique icon, it creates a cache object to manufacture and cache multiple sizes of its icon. Some of these cache objects are private to the object that created them (e.g. PM exe's) while others are shared among all objects that use the same icon (e.g. VIO exe's). The result is a 90+% reduction in memory usage over v2.52 (plus the ability to use different sized icons in Icon and Tree views).