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 in windows. The component FormForma(http://brunobl.sites.uol.com.br/fonte/FormForma.zip) also uses "SetWindowRgn" so i think it also shold be working but it didn't. Please take a look at FormForma code. to do the same thing in gtk2 please take a look at tests/testgtk.c in gtk2 source tarball. And i was asking about this plugger : http://z505.com/cgi-bin/qkcont/qkcont.cgi?p=PluggerPlugger On Mon, 27 Feb 2006 17:49:12 -0500 Den Jean <[EMAIL PROTECTED]> wrote: > 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.pandora.be/Jan.Van.hijfte/qtforfpc/shapedclock.png > > I was just working on this so ... > > > > > _________________________________________________________________ > To unsubscribe: mail [EMAIL PROTECTED] with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
