I've just dreamed up the following, so it might not actually work...
 
On selecting:
A1) Create a copy of the palette
A2) Increase/decrease all the colours by a predefined amount to obtain the hue you want (without rolling over)
 
On unselecting:
B1) Restore the palette from copy saved in step A1 (note that simply reversing step A2 is not safe since you could have reached the upper limits on some of the colours)
 
Note that you may want to enable the transparent property to obtain an effect similar to that used on the desktop.
 
 
-Andreas
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kevin Parker
Sent: Thursday, 7 November 2002 16:57
To: Multiple recipients of list delphi
Subject: [DUG]: That "selected" look.

Hi All

Following on from Jeremy's question yesterday...  Can anyone tell me how to
give a Timage component that "selected" look.  Like a desktop icon after a
single click.  The problem being that I need it to be reversible and would
much prefer not having to reload the image.  Is there a neat trick or
component for this?

Kevin

Reply via email to