CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Color of IWCGJQRaidoGroupEx items

by jredoc » 21 Dec 2013 06:22

Hello

Question:
Is there a property to assign the font color of the IWCGJQRadioGropuEx1.Items[1}.caption ?

Problem:
As an alternative to identifying a specific item via color, I tried to assign the IWCGJQRadioGrupEx1.Items.Style := jqcrHighlight; However, this resulted in the following compiler error:
[dcc32 Error] Frame_MedQuest.pas(177): E2003 Undeclared identifier: 'jqcrHighlight'

In an attempt to resolve the above error, I had to place the IWCGJQCheckBox unit in the uses clause, because the types are part of the TIWCGJQCheckRadioStyle Enumeration. However this action resulted in a different compile error
[dcc32 Error] Frame_MedQuest.pas(157): E2010 Incompatible types: 'TIWCGJQRadioExCaptionPos' and 'TIWCGJQCheckBoxExCaptionPos'
This second compiler error is associated with the following line of code IWCGJQRadioGroupEx1.CaptionPosition := jqcpRight;


Suggestion For Solution:
Would it be possible to add an ItemStyle property (similar to the IWCGPanelList1.Items.Items[0].ItemStyle property)? This would allow changes such as the following.

IWCGJQRadioGroup.Items.Items[0].ItemStyle.Add('color:white');
IWCGJQRadioGroup.Items.Items[0].ItemStyle.Add('background:red');

Suggestions?

TIA

John
jredoc
 
Posts: 125
Joined: 11 Jun 2013 03:34

by Jorge Sousa » 23 Dec 2013 15:08

Hi John

Ok we could add another style specification for radiongroupex items.

The question here is: all of these style changes are better and easily done by script, using jquery .css

you need to inspect the html, to apply the

$(selector).css

to apply to an html id, we must use the #id form of selector

$("#HTMLID").css("background","red");

you can render script both in full posts or in ajax/async
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Alexander Bulei » 23 Dec 2013 18:08

Hi jredoc,

Added new property LabelStyle in V1.9.0.3252.

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

by jredoc » 01 Jan 2014 00:41

Thank you for the addition.

I will reiterate what has been said by other users. I think the development and support teams of cgDevTools have almost single handedly breathed new life into Intraweb development and to some degree Delphi itself. Kudos the entire team.

John
jredoc
 
Posts: 125
Joined: 11 Jun 2013 03:34

by Jorge Sousa » 01 Jan 2014 16:42

Hello John

Thank you sir, have an awesome new year.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to JQRadioGroupEx

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.