[req] Od Icons States

I've been thinking about this for a while now, and perhaps some of you will relate. Wouldn't it be nice to have user-definable over/click states for your OD icons? For instance, when you mouse over the IE icon on your dock it could animate, or even just change color. Additionally, this behavior can be triggered by, or extended with a mouse click to reveal a third state.

I've suggested this to Paul Andrews, creator of SysStats, for a new feature of his docklet - but I think it should be extended to the entire dock.

Anyone think they could code such an extension?

#88063

Different icons for different states aren't to hard to implement in a docklet.

Mouseover can be done by using the TrackMouseEvent() api. I use this in my Animated Shortcut docklet and mp3 docklet btw.

An extension to add this to all dock items can be done too I think. It is possible to use the Dockets API on regular dock items. I tried this with GetLabel(). The only thing is that you must make sure that you call the API in Object Docks process-space. Using a mouse-hook, which would make sense if you want to use the mouse as a trigger, you can ensure this by checking if the mouse is over an item owned by Object Dock (used this technique this in docksounder 1.5).

Also a docklet that you could add to your dock, is always loaded into Object Dock's process space, so that would be even easier and less error-prone.

I don't have a lot of time for the next two weeks, but I definetely will give this idea a try.

#88072