Recent

Author Topic: TForm and transparency  (Read 3892 times)

timppl

  • Jr. Member
  • **
  • Posts: 86
TForm and transparency
« on: June 01, 2011, 12:32:42 pm »
Hello all

First of all, I am not sure if this is in the right section, so moderators feel free to move it.

My setup - lazarus svn 30995 with gtk2 on linux

In the application I am porting from Delphi, the splash screen is transparent so that the desktop can be seen through it, with a pattern set from a TImage. However, it does not seem that forms canot be set transparent with gtk2. I have looked through the forums and mailing lists and have seen to set AlphaBlend to True and AlphaBlendValue to 100.
I tried this and it did not make any difference. I have tried different values for AlphaBlendValues but non seem to make any difference.

In the dfm file, delphi has
  TransparentColor = True
  TransparentColorValue = clOlive
to set transparency ( like the trick for bitmaps, I assume ), but these do not appear to exist in lazarus/lcl.

Can anybody offer any definitive information on
1) If transparency works for forms in gtk2
2) How to do it

Thanks

Tim
« Last Edit: June 01, 2011, 12:36:42 pm by timppl »
Mageia 9 Linux on x86_64

AmatCoder

  • Jr. Member
  • **
  • Posts: 67
    • My site
Re: TForm and transparency
« Reply #1 on: June 02, 2011, 11:27:34 pm »
AlphaBlend works with gtk2, but you need a compositing window manager.

Regards.

timppl

  • Jr. Member
  • **
  • Posts: 86
Re: TForm and transparency
« Reply #2 on: June 03, 2011, 08:13:20 am »
Thanks, all is now clear :P. I am using plain metacity manager, so it will not work.

Regards

Tim
Mageia 9 Linux on x86_64

 

TinyPortal © 2005-2018