Re: [lazarus] transparent forms

2006-03-03 Thread listas
Hi I'v just reported this to bugtrack list, please take a look at issues: 0001804 0001805 0001806 thanks xpete > Regions are great and work in all Win Versions but Alpha Blending is > only implemented in Win2K+, if you have good drivers even alpha > doesn't consume much cpu, on Linux both Alph

Re: [lazarus] transparent forms

2006-03-01 Thread Razvan Adrian Bogdan
Regions are great and work in all Win Versions but Alpha Blending is only implemented in Win2K+, if you have good drivers even alpha doesn't consume much cpu, on Linux both Alpha and Regions should be supported already, i have noticed TCanvas has TRegion ? Was it meant to be a matrix with the alpha

Re: [lazarus] transparent forms

2006-02-28 Thread Micha Nelissen
Felipe Monteiro de Carvalho wrote: On 2/27/06, Micha Nelissen <[EMAIL PROTECTED]> wrote: 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. well ... good to know new things =) I did not know that such

Re: [lazarus] transparent forms

2006-02-27 Thread xpete
sorry for the late reply. I have been doing some test with this code: procedure TForm1.FormCreate(Sender: TObject); var Rgn : HRGN; begin Rgn := CreateEllipticRgn(1,1,217,217); SetWindowRgn(Handle, Rgn, True); end; And it works in Lazarus if i use unit Windows i

Re: [lazarus] transparent forms

2006-02-27 Thread Felipe Monteiro de Carvalho
On 2/27/06, Micha Nelissen <[EMAIL PROTECTED]> wrote: > 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. well ... good to know new things =) I did not know that such API function existed. Maybe it can

Re: [lazarus] transparent forms

2006-02-27 Thread Den Jean
On Monday 27 February 2006 03:38 am, Micha Nelissen wrote: > 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. > Here is a sample of using regions with FPC/Qt4 to get oddly shaped sizes. http://users.pan

Re: [lazarus] transparent forms

2006-02-27 Thread Christian Iversen
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 > > >

Re: [lazarus] transparent forms

2006-02-27 Thread Flávio Etrusco
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 lo

Re: [lazarus] transparent forms

2006-02-27 Thread Christian Iversen
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 t

Re: [lazarus] transparent forms

2006-02-27 Thread Micha Nelissen
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 port

Re: [lazarus] transparent forms

2006-02-26 Thread Felipe Monteiro de Carvalho
> My point was that the backgound is frozen, at least for version I tried. > Try showing a clock and magnify it with the magnifier, the seconds > didn't move. At first I didn't know this, and I wondered why I didn't > see the debug messages on the screen. Yes, the background is frosen, but you d

Re: [lazarus] transparent forms

2006-02-26 Thread Vincent Snijders
Felipe Monteiro de Carvalho wrote: On 2/25/06, Vincent Snijders <[EMAIL PROTECTED]> wrote: The magnifier uses a borderless form with the size of a the desktop, and before showing the form it copies the background from the screen. The background is frozen after that. I only made it the size

Re: [lazarus] transparent forms

2006-02-26 Thread Felipe Monteiro de Carvalho
On 2/25/06, Vincent Snijders <[EMAIL PROTECTED]> wrote: > The magnifier uses a borderless form with the size of a the desktop, and > before showing the form it copies the background from the screen. The > background is frozen after that. I only made it the size of the desktop to improve the drawi

Re: [lazarus] transparent forms

2006-02-26 Thread Felipe Monteiro de Carvalho
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 ca

Re: [lazarus] transparent forms

2006-02-26 Thread A.J. Venter
> > How does it work? Does it scan the form and build a region or so? Sounds > like a horrible hack to me TBH. How do you use it ? > Well there are a few ways one could achieve this, the worst hack being to have the code scan the form and copy whatever is behind it on screen onto the section you

Re: [lazarus] transparent forms

2006-02-26 Thread Micha Nelissen
On Sat, 25 Feb 2006 19:27:47 + xpete <[EMAIL PROTECTED]> wrote: > One of them is: > > property ScanLine[Row: Integer]: Pointer; > > from TBitmap with is present in JCL (http://www.delphi-jedi.org) so i > don't think it's difficult to implement. It's harder than you think if you step outside

Re: [lazarus] transparent forms

2006-02-25 Thread Vincent Snijders
xpete wrote: Felipe Monteiro de Carvalho has already done something like that in "Virtual Magnifying Glass" maybe he knows how to implement this. The magnifier uses a borderless form with the size of a the desktop, and before showing the form it copies the background from the screen. The ba

[lazarus] transparent forms

2006-02-25 Thread xpete
Hi I'm trying to port to lazarus 0.9.12 some apps that i have done in delphi 7 but i need some simple missing features. One of them is: property ScanLine[Row: Integer]: Pointer; from TBitmap with is present in JCL (http://www.delphi-jedi.org) so i don't think it's difficult to implement. But t