Forum > LCL
GroupBox's and ToolBar's Transparent
(1/1)
anna:
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?
anna:
Okey.
What about 3rd party transparent lazarus TGroupBox?
Is there ready packages for lazarus?
garlar27:
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:
--- Quote from: garlar27 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.
...
--- End quote ---
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.
skalogryz:
--- Quote from: anna 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)?
--- End quote ---
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).
Navigation
[0] Message Index