🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#554
From: Eberhard K�mmel
Date: Thu, 17 Jun 1999 00:00
23 lines
1257 bytes
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
Technical Details
Message-ID: <896bk7.ncf.ln@ewmk1.ewmk.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <37687007.E03C9970@sftw.umac.mo>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1091e5,cb5b86d88de05fbc
X-Google-Attributes: gid1091e5,public
X-Google-Thread: 10baee,cb5b86d88de05fbc
X-Google-Attributes: gid10baee,public
From: "Eberhard K�mmel" <ekuemme@ibm.net>
Subject: Re: How to make the FORM transparent !!!!
Date: 1999/06/17
Message-ID: <896bk7.ncf.ln@ewmk1.ewmk.de>
X-Deja-AN: 490712722
References: <37687007.E03C9970@sftw.umac.mo>
X-Notice: should be reported to postmaster@ibm.net
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Complaints-To: postmaster@ibm.net
X-Trace: 17 Jun 1999 16:06:14 GMT, 139.92.5.129
Organization: Global Network Services - Remote Access Mail & News Services
Newsgroups: comp.lang.pascal.delphi.misc,borland.public.delphi.winapi