Page 1 of 1

Table - 1 pixel border

Posted: Mon Nov 25, 2013 9:45 pm
by Thr33D
Hi,

I want to create a 1 pixel boarder with a table. Before the last update from the TDBRichViewEdit it works with your help here: http://www.trichview.com/help/index.htm ... ables.html

But after the update to 14.11.3 it doesn't work. The boarder betweens the rows are always 2 pixel.

Can you help me?
Thank you.

Posted: Tue Nov 26, 2013 9:37 am
by Sergey Tkachenko
I cannot reproduce this problem.
What exactly code do you use?

Posted: Tue Nov 26, 2013 10:45 am
by Thr33D
Ok, here are the code:

var table : TRVTableItemInfo;

begin
Table := TRVTableItemInfo.CreateEx (StrToInt(eRow.Text),StrToInt(eCol.Text),TDBRichviewEdit.RVData);
with table do
begin
Table.Options := table.Options - [rvtoRowSizing, rvtoColSizing];
CellBorderWidth := 1;
CellHSpacing := -1;
CellVSpacing := -1;
end;
TDBRichviewEdit.InsertItem('', table);

Posted: Tue Nov 26, 2013 12:42 pm
by Sergey Tkachenko
I added this code in the ActionTest demo (replacing TDBRichViewEdit to RichViewEdit1) and it works as expected.
Please send me a project (preferably without DB components) showing the problem.

Posted: Tue Nov 26, 2013 2:23 pm
by Thr33D
Hi,

ok you are right. At the first moment. The lines are correct. But try to save the document in rtf and open it again. Then you see 2pixel lines. It's the same with the DBRichView. At first, the lines are correct. After Query.Post. The lines are 2 pixel.

Posted: Fri Nov 29, 2013 3:21 pm
by Sergey Tkachenko
There is a bug in reading vertical cell spacing from RTF: values that should be used to calculate only BorderVSpacing are used to calculate CellHSpacing too.

It will be fixed in the next update. Let me know if you need this fix urgently.

Posted: Mon Dec 02, 2013 6:34 pm
by Sergey Tkachenko
Fixed in 14.12.2 (available for registered users)