πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.misc
Article #555

Re: How to make the FORM transparent !!!!

#555
From: SnipeZ
Date: Thu, 17 Jun 1999 00:00
26 lines
1418 bytes
Eberhard KοΏ½mmel wrote:

> Chow Hoi Ka, Eric schrieb in Nachricht <37687007.E03C9970@sftw.umac.mo>...
> >Hello,
> >
> >Is is possible to make the FORM transparent ?
> >
>
> No problem, check for WM_ERASEBKGND message in the WIN-API help.
>
> You can do so,
>
> procedure TMyWinControl.WndProc(var Message: TMessage);
> begin
>   if (Message.Msg = WM_ERASEBKGND) then
>   begin
>     Message.Result:=1;
>   end;
> ...
>
> (should also work for Forms) or go for the hbrBackground member of the
> WNDCLASS structure.
>
> Eberhard

That doesn't work ! Move your form around and you'll see
Technical Details
Message-ID: <37691E89.E9F5E4FA@casema.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37687007.E03C9970@sftw.umac.mo> <896bk7.ncf.ln@ewmk1.ewmk.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1091e5,cb5b86d88de05fbc
X-Google-Attributes: gid1091e5,public
X-Google-Thread: 10baee,cb5b86d88de05fbc
X-Google-Attributes: gid10baee,public
From: SnipeZ <kamail@casema.net>
Subject: Re: How to make the FORM transparent !!!!
Date: 1999/06/17
Message-ID: <37691E89.E9F5E4FA@casema.net>
X-Deja-AN: 490716190
Content-Transfer-Encoding: 8bit
References: <37687007.E03C9970@sftw.umac.mo> <896bk7.ncf.ln@ewmk1.ewmk.de>
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: abuse@casema.net
X-Trace: news.casema.net 929635958 27090 212.64.0.119 (17 Jun 1999 16:12:38 GMT)
Organization: Casema Internet
Mime-Version: 1.0
NNTP-Posting-Date: 17 Jun 1999 16:12:38 GMT
Newsgroups: comp.lang.pascal.delphi.misc,borland.public.delphi.winapi