Table - 1 pixel border

General TRichView support forum. Please post your questions here
Post Reply
Thr33D
Posts: 9
Joined: Mon Apr 11, 2011 10:44 am

Table - 1 pixel border

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17281
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I cannot reproduce this problem.
What exactly code do you use?
Thr33D
Posts: 9
Joined: Mon Apr 11, 2011 10:44 am

Post 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);
Sergey Tkachenko
Site Admin
Posts: 17281
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Thr33D
Posts: 9
Joined: Mon Apr 11, 2011 10:44 am

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17281
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17281
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Fixed in 14.12.2 (available for registered users)
Post Reply