Form from PNG in Ubuntu. lazarus / 39-Graphics ---------------------------------------------------------------------- yus · 2015-08-08 18:17 Hello. In Windows, the creation of non-standard forms of PNG images with transparency possible. Is it possible to create such forms in Linux (Ubuntu)? PS: Starting Windows applications in Ubuntu under Wine is working correctly. Ubuntu screenshot Windows screenshot ---------------------------------------------------------------------- Leledumbo · 2015-08-10 04:51 see examples/shapedcontrols. ---------------------------------------------------------------------- Jurassic Pork · 2015-08-10 07:04 hello, examples/shapedcontrols  uses   setshape but in an old topic here  Fred vS said : QuoteSetShape() does not work with Carbon OSX. (but does not crash it)  SetShape() cannot load images with Linux GTK2 and crash the system (but can load drawings and execute it.)  SetShape() works perfectly with Linux Qt  SetShape() works perfectly with Windows.  for Lazarus 1.2 version. Is that always true for Lazarus 1.4 ? ---------------------------------------------------------------------- Leledumbo · 2015-08-10 08:54 Quote from: Jurassic Pork on August 10, 2015, 09:04:33 amIs that always true for Lazarus 1.4 ? One can always try before ask, it's just a matter of compiling and running the provided example. At least on Linux GTK2/Qt it works. ---------------------------------------------------------------------- aradeonas · 2015-08-10 09:11 He or she wants a PNG and transparent form and the demo you said didn't support like this as it shown or Timage because its not a win control so how can make like screenshot ? ---------------------------------------------------------------------- yus · 2015-08-10 09:25 Thank you for answer. Quote from: Leledumbo on August 10, 2015, 06:51:16 amsee examples/shapedcontrols. I watched this example but I could not create a form with transparency in Ubuntu. ---------------------------------------------------------------------- Leledumbo · 2015-08-10 10:43 Quote from: aradeonas on August 10, 2015, 11:11:30 amHe or she wants a PNG and transparent form and the demo you said didn't support like this as it shown or Timage because its not a win control so how can make like screenshot ? The area which is not covered by rectangular region of the form (See screenshot), isn't that transparent? Quote from: yus on August 10, 2015, 11:25:32 amI watched this example but I could not create a form with transparency in Ubuntu. Show your code. The example draws hexagonal form, which of course will require transparency at some parts because it's not rectangular. ---------------------------------------------------------------------- aradeonas · 2015-08-10 10:48 Me and yus want a transparent with alha channel like screen shot,what the demo shows is like Alphablend feature in the form proprieties as I see. I saw what we want in CodeBot library demos but the no news from author and he's library ---------------------------------------------------------------------- yus · 2015-08-10 10:55 Quote from: aradeonas on August 10, 2015, 12:48:18 pmMe and yus want a transparent with alha channel like screen shot,what the demo shows is like Alphablend feature in the form proprieties as I see. I saw what we want in CodeBot library demos but the no news from author and he's library Yes with Alpha Chanel!  Sorry fo my English. I have the source code for windows, but dirty source. I wrote just to verify that can display a transparent window. Source Windows ---------------------------------------------------------------------- Leledumbo · 2015-08-11 03:40 Quote from: aradeonas on August 10, 2015, 12:48:18 pmMe and yus want a transparent with alha channel like screen shot,what the demo shows is like Alphablend feature in the form proprieties as I see. No it's not, did you even see the code? The transparent part is really because of the supplied bitmap. Change that to a bitmap made from PNG image with alpha channel and you will get the alpha channel rendered as transparent, click through applied. ---------------------------------------------------------------------- yus · 2015-08-11 06:05 Quote from: Leledumbo on August 11, 2015, 05:40:53 amNo it's not, did you even see the code? The transparent part is really because of the supplied bitmap. Change that to a bitmap made from PNG image with alpha channel and you will get the alpha channel rendered as transparent, click through applied. I try use png image but alpha transparent don't work with Setshape. If you are sure that it would work. Can you show the example code?