How I can add TextStyles dynamically?
Posted: Mon Jul 17, 2006 10:50 am
I am constructing Dynamically a calendar with a table in RIchviewedit.
The background an text color of every day is defined in a database and apply them:
background color it's fine. But the text color is always black.
How I can add TextStyles dynamically?[/code]
The background an text color of every day is defined in a database and apply them:
Code: Select all
for d:=1 to topday do
begin
table1.Cells[x,d].Clear;
rvs.TextStyles[1].Color:=Query.fieldbyName('CALENDAR_TEXT').asinteger;
table1.Cells[x,d].AddNL(inttostr(d),0,1);
table1.Cells[x,d].Color:=Query.fieldbyName('CALENDAR_BACKG').asinteger;
end;
How I can add TextStyles dynamically?[/code]