Welcome, Guest. Please login or register.

Author Topic: Dynamic Icons  (Read 1057 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline TwinTopic starter

  • Full Member
  • ***
  • Join Date: Dec 2003
  • Posts: 106
    • Show only replies by Twin
Dynamic Icons
« on: February 12, 2004, 12:44:11 AM »
Hi

This is a bit of a weird request, but I want to know if there is anything available for the Amiga (or any other computer) that falls into this category:

An icon that changes when the program it represents is altered.

eg An icon for a txt file that is green with <100 lines of text, red with >100 lines of text  and yellow if empty.

Thanks
 

Offline blobrana

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 4743
    • Show only replies by blobrana
    • http://mysite.wanadoo-members.co.uk/blobrana/home.html
Re: Dynamic Icons
« Reply #1 on: February 12, 2004, 01:04:36 AM »
I haven't seen anything like that but it couldn`t be that difficult to program...

Something for OS4?

(someting like windoze trash can icon?)

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: Dynamic Icons
« Reply #2 on: February 12, 2004, 01:11:22 AM »
Changing the icon image dynamically could be a bit of a hassle since it would actually involve modifying the .info files, resulting in a lot of disk extra accessing.

However, simply changing the colour is much easier. The icon.library could be patched to tint icons various colours depending on some user preference based on size or last modified parameters.
int p; // A
 

Offline that_punk_guy

  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 4526
    • Show only replies by that_punk_guy
Re: Dynamic Icons
« Reply #3 on: February 12, 2004, 01:17:28 AM »
Deficons could probably do this, but once you have a .info file for the file (if it's been snapshot) it would no longer be dynamic.

Icons on the Amiga are a bit of a mess, IMO...
 

Offline tonyw

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 553
    • Show only replies by tonyw
Re: Dynamic Icons
« Reply #4 on: February 12, 2004, 01:30:26 AM »
You could do it by having several icon images, and changing a soft link to point to the one you want. Problem with snapshotting, though.

I'm not sure, but is that the way that YAM changes its Inbox icon to show how many letters you have?

tony
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16867
  • Country: gb
  • Thanked: 4 times
    • Show only replies by Karlos
Re: Dynamic Icons
« Reply #5 on: February 12, 2004, 01:34:37 AM »
@tony

Isnt the VAM inbox icon an appicon? In which case it can change under program control.

Normal icons are simply .info files kicking around your drive (or default ones in your env:sys/).

I do think that intercepting icon.library calls to render the icons tinted a particular colour to indicate status is achieveable.
int p; // A