Hi!!
Somebody knows how make a custom control with background transparency on GTK2/QT?
My idea is that a control behind of this custom control must be displayed (if this control is behind of a non painted area)
Problem example attached.
Ideas?

Mailing lists / lazarus / 2013-07
5 messages · 3 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi!!
Somebody knows how make a custom control with background transparency on GTK2/QT?
My idea is that a control behind of this custom control must be displayed (if this control is behind of a non painted area)
Problem example attached.
Ideas?
It works for me but only in Qt. You have to set ControlStyle := ControlStyle - [csOpaque]; in constructor. csParentBackground seems to have no effect on it. In GTK2 I cannot overlay components anyway.?
?
Vojt?ch?
ControlStyle := ControlStyle - [csOpaque]; don't have effect, even in QT2013/7/24 Fabio Luis Girardi :
Very good :(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130724/6e82ba6f/attachment.html>
If you use regions it will work in nearly all widgetsets:
http://wiki.freepascal.org/LCL_Tips#Creating_a_non-rectangular_window_or_control