On 2/25/06, xpete <[EMAIL PROTECTED]> wrote:
> But the most important features that i need are:
>
> property TransparentColor: Boolean;
> property TransparentColorValue: TColor;
>
> from TCustomForm
> It makes any area of the form with that color become transparent.
> i tried to use a component  called FormForma from here
>
> Felipe Monteiro de Carvalho has already done something like that
> in "Virtual Magnifying Glass" maybe he knows how to implement this.

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.

Notice that the way to take the screenshot is very platform-dependent,
so you can see why this isn't so easy to do on Lazarus. On Windows
there are some API functions to take the screenshot. On x11-linux you
can use xwd, image magick or try direct access (I tryed that with
little sucess).

By the way, why do you need that? To create a window that is not retangular?

There are more professinal ways to do that, but they are problably
overkill for your applications. I will be enhancind the Magnifier to
be able to "see" below it's own window using:

DirectX on windows
X Composite Extension on Linux
Aqua on Mac OS X

So you can see this is very platform-dependent.

> With gtk2 source code also come a example on how to do this, maybe you
> could take a look at it.

A example about what?


> Witch is the last version of delphi that lazarus is full compatible
> with?

None =)

It's about 95% compatible with delphi vcl code. With a little work, a
project can be compiled with any version of delphi and also lazarus,
like Virtual Magnifying Glass can.

> when "plugger" will come bundle with lazarus?

what is plugger??


--
Felipe Monteiro de Carvalho

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

Reply via email to