Page 1 of 1

Opacity stye and region content

PostPosted: 18 Apr 2014 10:59
by Davide
Hello,

I set the opacity to 0.5 in the "Style" property of a region.
Inside the region I show a JQCGCarousel and a JQCGLabelEx.

Everything inside the region inherit the opacity style value.
I try to specify an opacity of 1 int the Style property of the controls inside the region but nothing changed.
How can I set the standard opacity of the controls inside the region ?

Thank you,
Davide

Re: Opacity stye and region content

PostPosted: 21 Apr 2014 16:48
by Alexander Bulei
Hi Davide,

Opacity is inherited and it can not be reset.

But, You can :


  • Make the other element not a child.
  • Use rgba function.

Here you have rgba example:

delphi code
object IWCGJQRegion2: TIWCGJQRegion
Left = 128
Top = 168
Width = 417
Height = 225
TabOrder = 4
Version = '1.0'
Style.Strings = (
'background:rgba(255, 0, 0, 0.5)')
object IWCGJQEdit1: TIWCGJQEdit
Left = 176
Top = 112
Width = 121
Height = 21
TabOrder = 5
Version = '1.0'
ScriptEvents = <>
Text = ''
end
object IWCGJQLabelEx1: TIWCGJQLabelEx
Left = 182
Top = 64
Width = 100
Height = 21
TabOrder = 6
Version = '1.0'
Text = 'Test'
end
end


Best Regards.