Recent

Author Topic: GroupBox's and ToolBar's Transparent  (Read 8299 times)

anna

  • Sr. Member
  • ****
  • Posts: 426
GroupBox's and ToolBar's Transparent
« on: July 23, 2010, 09:09:48 am »
Question1:
Why GroupBox has not transparent property? How to make GroupBox transparent (by easiest way, no 3rd party components)?
Question2:
What ToolBar's transparent property does?
« Last Edit: July 23, 2010, 10:03:37 am by anna »
WinXP SP3 Pro Russian 32-bit (5.1.2600)

anna

  • Sr. Member
  • ****
  • Posts: 426
Re: GroupBox's and ToolBar's Transparent
« Reply #1 on: July 23, 2010, 12:43:44 pm »
Okey.
What about 3rd party transparent lazarus TGroupBox?
Is there ready packages for lazarus?
« Last Edit: July 23, 2010, 12:50:55 pm by anna »
WinXP SP3 Pro Russian 32-bit (5.1.2600)

garlar27

  • Hero Member
  • *****
  • Posts: 652
Re: GroupBox's and ToolBar's Transparent
« Reply #2 on: July 23, 2010, 01:58:08 pm »
AFAIK Group boxes are transparent on Linux, on windows it's not transparent I think is an OS issue.

And about ToolBar's: Transparent property should make it transparent (I gess) but, if so, it seems it's not working (at least on Ubuntu 9.04).

anna

  • Sr. Member
  • ****
  • Posts: 426
Re: GroupBox's and ToolBar's Transparent
« Reply #3 on: July 23, 2010, 03:43:38 pm »
AFAIK Group boxes are transparent on Linux, on windows it's not transparent I think is an OS issue.

...
GroupBox has true ParentColor property by default. It is good for forms. But what may I do if I have some Image behind?
Developers are funny.
WinXP SP3 Pro Russian 32-bit (5.1.2600)

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: GroupBox's and ToolBar's Transparent
« Reply #4 on: July 23, 2010, 04:21:09 pm »
Question1:
Why GroupBox has not transparent property? How to make GroupBox transparent (by easiest way, no 3rd party components)?
as garlar27've said, unless OS supports the transparency for controls, you won't be able to enable it easily. 

However you can try the following:
* setting window transparency via WinAPI functions (if you're coding for Win32), but i'm not sure if it works for a controls (though it DOES work for forms);
* read the Lazarus wiki for 3d party controls or search google;
* Instead of using TGroupBox control, you can place TImage. Draw groupbox-es (via themes) borders inside of the image, leaving the rest of it transparent for background controls.


P.S. MacOSX is full of transparent controls (no need for hacks and/or workarounds).

 

TinyPortal © 2005-2018