Page 1 of 1

Completely hide border cells

Posted: Mon Apr 24, 2006 9:21 pm
by dudubaiao
Hi,

How to completely hide the borders of the cells of a table inserted on a TRichViewEdit. I know that if I use the settings below in a TRichView it works:

rvtTable.BorderWidth := 0;
rvtTable.BorderHSpacing := 0;
rvtTable.BorderVSpacing := 0;
rvtTable.CellBorderWidth := 0;

rvtTable.CellHSpacing := -1;
rvtTable.CellVSpacing := -1;

But in a TRichViewEdit I still can see the borders.

Are there any way?

Thanks!

Just to help somebody with the same problem

Posted: Wed Apr 26, 2006 1:00 pm
by dudubaiao
I'm using a quick-and-dirty workaround:

RichViewTableGridStyle := psClear;

Posted: Wed Apr 26, 2006 3:38 pm
by Sergey Tkachenko
This is a correct solution.
Your code hides all borders (and they will be invisible when loaded in TRichView or pronting), but TRichViewEdit shows grid lines in place of invisible borders for the convenience of editing.

RichViewTableGridStyle := psClear hides grid lines.

PS:
Assign
rvtTable.CellHSpacing := 0;
rvtTable.CellVSpacing := 0;
Negative values cause cells to overlap, it's not necessary if you already hide borders.

Re: Just to help somebody with the same problem

Posted: Tue Jun 06, 2006 9:52 am
by Sweet
dudubaiao wrote:I'm using a quick-and-dirty workaround:

RichViewTableGridStyle := psClear;
Hi,
I'm a newbie...so please forgive me :o)

I've got quite the same problem...but in my case, I want to see the grid.

My problem is : I can't compile my Delphi project if I add such code:
RichViewTableGridStyle := psDot;

=> Delphi doesn't seem to know this property "RichViewTableGridStyle"

Did I miss something ? Do I need any special uses ? (I have added trvpdf uses)

Thanks very very much in advance,
Sweet

Posted: Tue Jun 06, 2006 6:00 pm
by Sergey Tkachenko
This variable is defined in RVTable unit.
Add this unit in "uses".