// *****************************************************************************
// HtmlToTColor: 33FFBB -> TColor
// *****************************************************************************
function HtmlToTColor(sColor : string ): integer;
begin
try
Result := RGB(
{ get red value }
StrToInt( '$'+Copy( sColor, 2, 2 ) ),
{ get green value }
StrToInt( '$'+Copy( sColor, 4, 2 ) ),
{ get blue value }
StrToInt( '$'+Copy( sColor, 6, 2 ) )
);
except
raise Exception.Create(sColor+': Error html COLOR string!');
end;
end;