Joined: 26 Aug 2007 Posts: 988 Location: Australia
Posted: Sat Aug 30, 2008 1:46 am Post subject: [Delphi] Transparent form preserving alpha of controls?
What I want is this. I've been able to achieve this effect with the following code:
Code:
procedure TForm1.CreateParams(var Params: TCreateParams);
begin
inherited CreateParams(Params);
Params.ExStyle := Params.ExStyle OR WS_EX_TRANSPARENT OR WS_EX_LAYERED;
end;
Problem is, moving the form carries the rect that was below the form before I moved it.
Can anyone give me information on how I can achieve a fully transparent form that preserves the alpha of the controls, and supports moving / resizing of the window? _________________
Joined: 26 Aug 2007 Posts: 988 Location: Australia
Posted: Sat Aug 30, 2008 5:07 pm Post subject:
SetWindowRgn sets the region of the window that is painted, which includes the controls; what I need is to somehow make the form background transparent, but the controls visible, and preserve the varying transparency of the controls. _________________
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum