Hello again,
I was working with tables and was trying to create an "Odd" and "Even" style for each row defined as such:
Code
// Set Table Styles
with FEditor.ParStyles.AddStyle('Even') do
begin
ASet(WPAT_IndentLeft, 32);
ASet(WPAT_IndentRight, 32);
ASet(WPAT_CharStyleON, WPSTY_ITALIC);
ASet(WPAT_CharStyleMask, 1);
ASetColor(WPAT_BGColor, clMoneyGreen);
ASet(WPAT_ShadingValue, 30);
end;
with Feditor.ParStyles.AddStyle('Odd') do
begin
ASet(WPAT_IndentLeft, 32);
ASet(WPAT_IndentRight, 32);
ASet(WPAT_CharStyleON, WPSTY_BOLD);
ASet(WPAT_CharStyleMask, 1);
ASetColor(WPAT_BGColor, clCream);
ASet(WPAT_ShadingValue, 90);
end;
Alles anzeigen
Helas, I'm able to get the Odd rows text to be BOLD, but the Even rows are not in Italic in any way. I'm looking around trying to find if something was posted on this matter ... BTW, changing Italic to Bold in the Even style will work ....
Green_Flyer