On Monday 27 February 2006 17:15, Flávio Etrusco wrote:
> On 2/27/06, Christian Iversen <[EMAIL PROTECTED]> wrote:
> > On Monday 27 February 2006 09:38, Micha Nelissen wrote:
> > > Felipe Monteiro de Carvalho wrote:
> > > > What really happens with TransparentColor of TForm is that it takes a
> > > > screenshot of the screen, probably before the application is loaded,
> > > > so it doesn't appear on the screenshot, and the first thing that
> > > > happens on the paint process of the window is paint a portion of the
> > > > screenshot.
> > > >
> > > > There is no real window transparency on Windows API. All apps that
> > > > don't seam to have a rectangular window acctually work like that.
> > >
> > > I think SetWindowRgn makes part of a window transparent (the parts not
> > > in the region). For example, winamp can do it: have oddly shaped sizes.
> >
> > And, xmms can do it without problems as well. (also on old versions of X)
> >
> > It's only the alpha-*blended* situation that is tricky - alpha testing
> > should not be too hard, if you simply recompute the clipping region when
> > the bitmap is changed (which is probably slow, so just don't change it
> > too often :-)
> >
> > --
> > Regards,
> > Christian Iversen
>
> No, no, no, Micha is very right.
> I don't know how this discussion started and what it was trying to
> acomplish, but SetWindowRgn does exatcly what Micha said.

But that's exactly my point! :-)

-- 
Regards,
Christian Iversen

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to