Re: Transparent window



On Sun, 30 Oct 2005 18:58:08 +0100, "MD" <michel.dominique@xxxxxxxxxx>
wrote:

>I'm looking for a way to make transparent a form's client area while
>dragging it onto the desktop. For instance, when I click down on the window
>title, the client area content disappears and instead we see what there is
>under the window, while the window is moved.
>
>Is it easy to do with Delphi, without additionnal component ?

Depends on a few things:
What version of Delphi are you using?
What operating system are you running on?
Does is have to be the client area _only_ that is transparent?

For D6 & greater, and apps running on Win 2K or later, setting the
whole form to a (semi) transparent state is trivial - just play with
the AlphaBlend and AlphaBlendValue properties of the form.

For other cases it is possible, but more involved. I don't remember
the details but I have seen such code on the Delphi groups before, so
Google should find it.

--
Duncan
.



Relevant Pages

  • Re: Transparent window
    ... > I'm looking for a way to make transparent a form's client area while ... > dragging it onto the desktop. ... the client area content disappears and instead we see what there is ... > under the window, ...
    (alt.comp.lang.borland-delphi)
  • Transparent window
    ... I'm looking for a way to make transparent a form's client area while ... dragging it onto the desktop. ... when I click down on the window ...
    (alt.comp.lang.borland-delphi)
  • Re: HPEN and Rectangle() on Contantly refeshing window object
    ... Indeed I cannot get to the video rendering at this time (although in the ... this idea about creating a transparent window (as opposed to the ... able to draw a rubberbanded rectangle around an area within this screen. ...
    (microsoft.public.vc.mfc)
  • Problem with Shaped Windows Forms
    ... Visual Studio has a doc that explains how to create a shaped window. ... I followed the doc exactly yet the purple color that I choose as my ... background of my form will not show as transparent. ... This property sets the bitmap image to be the background of the form. ...
    (microsoft.public.dotnet.faqs)
  • Re: Calculating the client area
    ... for some reason my mainframe window is getting created a little bit ... The real client area is 536x480. ... is bigger than after the first WM_SIZE message? ...
    (microsoft.public.pocketpc.developer)