Home » U++ Library support » RichText,QTF,RTF... » patch ParseRTF, Add cell background colors
patch ParseRTF, Add cell background colors [message #44544] |
Thu, 26 March 2015 19:50  |
omari
Messages: 276 Registered: March 2010
|
Experienced Member |
|
|
Hi,
1 - CtrlCore/ParseRTF.cpp, line 1260, insert this lines:
else if(PassQ("clcfpat")) {
if(command_arg >= 0 && command_arg < color_table.GetCount())
CellInfoAt(ts.stylecol).format.backcolor = color_table[command_arg];
}
2 - RichText/Table.h , line 10, insert this line:
3 - RichText/TableCell.cpp
at line 18, initialize backcolor:
and at line 144, in DrawCell()
replace "color" by "backcolor" :
w.DrawRect(l + border.left, y + border.top,
r - l - border.left - border.right, yy - y - border.top - border.bottom,
format.color);
by
w.DrawRect(l + border.left, y + border.top,
r - l - border.left - border.right, yy - y - border.top - border.bottom,
format.backcolor);
regards
omari.
[Updated on: Thu, 26 March 2015 19:51] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sun May 11 14:31:39 CEST 2025
Total time taken to generate the page: 0.04413 seconds
|