Thema: Delphi alpha key - transparency

Einzelnen Beitrag anzeigen

Benutzerbild von SirThornberry
SirThornberry
(Moderator)

Registriert seit: 23. Sep 2003
Ort: Bockwen
12.235 Beiträge
 
Delphi 2006 Professional
 
#4

Re: alpha key - transparency

  Alt 28. Feb 2006, 15:12
your "SetTransparentForm" works only for top-level windows. If a window has a Parent this will not work.
If you need Alphatransparenz you have to write your own components.

you can get the image of your parent componenty with:
Delphi-Quellcode:
Parent.Perform(WM_ERASEBKGND, DC, 0);
Parent.Perform(WM_PAINT, DC, 0);
then you can use this picture in your own component to blend it with your components pic.

[Edit]
I found a solution for controls derived from (oder was heißt abgeleitet) TCustomControl like TPanel
[/Edit]
Jens
Mit Source ist es wie mit Kunst - Hauptsache der Künstler versteht's
  Mit Zitat antworten Zitat