eratech
Posts: 513
|
Posted: 03/06/2014, 4:47 PM |
|
Hi - if it's a number there are some formatting options in the Manual topic "Number Format" including colours and conditions and thresholds - but is sounds like you are using that already. I've sometimes had problems with that but nothing common enough to remember specifics.
Alternatively, if the content is HTML then I have sometimes put warnings with HTML in the text for the label Before Show:
if (myvalue > 100) then
labelWarning.Text = "<font color='red'>Warning!</font>"
else
labelWarning.Text = "<font color='green'>Ok!</font>"
end if
And I've recently found more uses for the 'Attributes' to set things like colours - put an Attribute on the label and then in the 'Before Show' set the attribute like above, and put the attribute (showcolor) into a html tag around the label:
$labelWarning->Attributes->SetValue('showcolor', 'red')
I've used this with a <span> around the label, and used the attribute to set the class, and the class has the colours etc. Useful as I needed to have the same colours in multiple places, and less code output, and I can change the CSS once if needed.
Might help
Eric
_________________
CCS 3/4/5 ASP Classic, VB.NET, PHP
Melbourne, Victoria, Australia |