Recent

Author Topic: Forms and menus transparency?  (Read 5952 times)

Anonymous

  • Guest
Forms and menus transparency?
« on: October 11, 2005, 12:56:51 pm »
Hi all, I wanted to add transparency to my application written in FreePascal wit Lazarus.
Is it possible? Does exist a property to set, i.e., something like (in pseudocode) ThisObject.Transparency:=200 (out of 256 levels).
I know it would be a difficult thing to obtain in a cross platform environment, but it will be cool.
Does exist something similar or with similar purpouses in Lazarus?
Can I set the level of transparence of a window, a region, a form,a menu?
Any hint will be apreciated, thanks!

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
RE: Forms and menus transparency?
« Reply #1 on: October 11, 2005, 05:41:25 pm »
It is not (yet ?) possible
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
RE: Forms and menus transparency?
« Reply #2 on: October 12, 2005, 06:41:20 pm »
Yes, I would say this is very hard to be implemented in a multi-platform way.

You may use Windows API or GTK directly to do such things and then create a {$IFDEF WIN32} and {$IFDEF Linux} on your code. I don't know if you can use the form designer in this case, but maybe you can...

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
RE: Forms and menus transparency?
« Reply #3 on: October 13, 2005, 12:17:08 pm »
Multiplatform is not that difficult. Add a SetTransparency to TWSWinControl and implement it in the different widgetsets.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018