CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Opacity stye and region content

by Davide » 18 Apr 2014 10:59

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
Davide
 
Posts: 150
Joined: 14 Oct 2013 11:33

by Alexander Bulei » 21 Apr 2014 16:48

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.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to JQRegion

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.