[DUG] AlphaBlend Panel?

John Bird johnkbird at paradise.net.nz
Fri Mar 20 20:52:11 NZST 2009


Not sure if this applies for your case, but when I wrote the ATClock (transparent analogue clock) I used a form with no borders, the form colour set to be white, white set to be transparent (Alphablend about 80-120) and put some shapes of a different colour where I wanted partial transparency.   (form TransparentColor and TransparentColorValue properties).   Result - the square form totally disappears.

(I also set the form to be moveable by dragging on any non-transparent part, and did the hands using just canvas draw - and to my pleasant surprise dragging on the hands also could drag the clock too).

This works D2006 and D2007, and runs fine on XP and later.

I am guessing you could do something like this by setting the colour of the panel appropriately.  Looks like TPanel does not have these properties, but it does have a ParentColor property, so you may be able to do something by cleverly setting the parent form properties.


John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20090320/427050cf/attachment.html 


More information about the Delphi mailing list