Hi Trevor,

How about you post your code on this list? I am interested to know too.

Regards
Leigh

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Trevor Jones
Sent: Tuesday, June 01, 2004 3:07 PM
To: [EMAIL PROTECTED]; NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Floating Object


Rohit,
  it is certainly posssible to make a panel have a transaparent background,
but it's not easy.

  What you need to do is create a descendant of a TPanel and override
WM_ERASEBKGND to get the controls underneath it to paint themselves as you
panel's background (including gettting the parent of the controls under your
panel to do its own erase background).

  I have some code that does it, but there's too much of it to post here,
and it may be overkill for what you are trying to do.

Trevor



----- Original Message -----
From: "Rohit Gupta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "NZ Borland Developers Group - Delphi List"
<[EMAIL PROTECTED]>
Sent: Tuesday, June 01, 2004 1:40 PM
Subject: Re: [DUG] Floating Object


> Ok, playijng around, I can achieve what I want with a floating
> TPanel.  Next question, is there a way to make its background
> transparent ?
>
>
> From:           "Rohit Gupta" <[EMAIL PROTECTED]>
> Organization:   Computer Fanatics Ltd
> To:             NZ Borland Developers Group - Delphi List
<[EMAIL PROTECTED]>
> Date sent:      Tue, 01 Jun 2004 13:15:01 +1200
> Priority:       normal
> Subject:        [DUG] Floating Object
> Send reply to:  [EMAIL PROTECTED],
>   NZ Borland Developers Group - Delphi List
> <[EMAIL PROTECTED]>
> <mailto:[EMAIL PROTECTED]>
> <mailto:[EMAIL PROTECTED]>
>
> > I want to draw a line on top of all the controls on  a panel.
> >
> > Is there some easy way to do this ?Regards
> >Regards
>
> Rohit
>
> ======================================================================
> CFL - Computer Fanatics Ltd.  21 Barry's Point Road, AKL, New Zealand
> PH    (649) 489-2280
> FX    (649) 489-2290
> email [EMAIL PROTECTED]  or  [EMAIL PROTECTED]
> ======================================================================
>
>
> _______________________________________________
> Delphi mailing list
> [EMAIL PROTECTED]
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>


_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi


_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to