Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-07

Custom control

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Fabio Luis Girardi

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?

The best regards, Fabio Luis Girardi PascalSCADA Project http://sourceforge.net/projects/pascalscada http://www.pascalscada.com -------------- next part -------------- A non-text attachment was scrubbed... Name: Captura de tela de 2013-07-24 16:20:35.png Type: image/png Size: 8396 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130724/0fdb3600/attachment.png>

Reply by email

Fabio Luis Girardi
ControlStyle := ControlStyle - [csOpaque]; don't have effect, even in QT

2013/7/24 Fabio Luis Girardi :

Show quoted text 59 lines
ControlStyle := ControlStyle - [csOpaque]; don't have effect, even in QT 2013/7/24 Vojt?ch ?ih?k : > 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 > > ______________________________________________________________ >> Od: "Fabio Luis Girardi" >> Komu: Lazarus mailing list >> Datum: 24.07.2013 21:30 >> P?edm?t: [Lazarus] Custom control >> > > 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? > > -- > The best regards, > > Fabio Luis Girardi > PascalSCADA Project > http://sourceforge.net/projects/pascalscada > http://www.pascalscada.com > > > ---------- > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- The best regards, Fabio Luis Girardi PascalSCADA Project http://sourceforge.net/projects/pascalscada http://www.pascalscada.com
The best regards, Fabio Luis Girardi PascalSCADA Project http://sourceforge.net/projects/pascalscada http://www.pascalscada.com

Reply by email

Fabio Luis Girardi

Very good :(

"Vojt?ch ?ih?k" wrote 15 lines
I see now. It works here (Qt) but only if Form.Color = clDefault. When I change Form.Color to clYellow it is transparent in design-time but not in run-time. In run-time it looks like on your screenshot. Maybe csParentBackground and csOpaque flags are not implemented for all platforms. Vojt?ch ______________________________________________________________ > Od: "Fabio Luis Girardi" > Komu: "Vojt?ch ?ih?k" > Datum: 24.07.2013 22:54 > P?edm?t: Re: [Lazarus] Custom control > ControlStyle := ControlStyle - [csOpaque]; don't have effect, even in QT

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130724/6e82ba6f/attachment.html>

Reply by email