Page 1 of 1

Color of IWCGJQRaidoGroupEx items

PostPosted: 21 Dec 2013 06:22
by jredoc
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

Re: Color of IWCGJQRaidoGroupEx items

PostPosted: 23 Dec 2013 15:08
by Jorge Sousa
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

Re: Color of IWCGJQRaidoGroupEx items

PostPosted: 23 Dec 2013 18:08
by Alexander Bulei
Hi jredoc,

Added new property LabelStyle in V1.9.0.3252.

Best Regards.

Re: Color of IWCGJQRaidoGroupEx items

PostPosted: 01 Jan 2014 00:41
by jredoc
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

Re: Color of IWCGJQRaidoGroupEx items

PostPosted: 01 Jan 2014 16:42
by Jorge Sousa
Hello John

Thank you sir, have an awesome new year.