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!
Completely hide border cells
Just to help somebody with the same problem
I'm using a quick-and-dirty workaround:
RichViewTableGridStyle := psClear;
RichViewTableGridStyle := psClear;
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
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.
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
Hi,dudubaiao wrote:I'm using a quick-and-dirty workaround:
RichViewTableGridStyle := psClear;
I'm a newbie...so please forgive me )
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
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: