Recent

Author Topic: TCustomTransparentControl ??  (Read 2913 times)

zex2011

  • New Member
  • *
  • Posts: 17
TCustomTransparentControl ??
« on: September 22, 2014, 04:49:45 pm »
Any plans on implementing TCustomTransparentControl like the Delphi one:

http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/Controls_TCustomTransparentControl.html

Today it's a standard to have modern GUI with transparency and animation. Lazarus doesn't have even a single transparent container control, which makes it impossible to create modern looking apps in it.

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1260
Re: TCustomTransparentControl ??
« Reply #1 on: September 22, 2014, 05:17:15 pm »
Lazarus doesn't have even a single transparent container control, which makes it impossible to create modern looking apps in it.

I don't know much about transparency, but TForm has AlphaBlend/AlphaBlendValue.    So there's 1 transparent container control at least...
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: TCustomTransparentControl ??
« Reply #2 on: September 22, 2014, 05:21:14 pm »
We support non-rectangular controls instead:

http://wiki.lazarus.freepascal.org/LCL_Tips#Creating_a_non-rectangular_window_or_control

This is the same as transparency support, except that only fully visible or fully transparent are supported, without any values in between.

If it hard to support values in between in all platforms that we support. Delphi supports only Windows. Other platforms use firemonkey which is fully custom drawn. Partial transparency should be doable in all platforms using the custom drawn LCL interface.

 

TinyPortal © 2005-2018