Duplicating Rows from Tables in Richview

General TRichView support forum. Please post your questions here
Post Reply
tomr
Posts: 60
Joined: Wed Dec 09, 2020 9:36 am

Duplicating Rows from Tables in Richview

Post by tomr »

Hi Sergey,
While working with tables in RichEdit, I came across the following issue.
I was not able to reproduce it with a newly created table, so I attached an example RVF file.
Table Example.rvf
(68.01 KiB) Downloaded 5 times
Steps to reproduce:
Open the RichViewActionsTest demo.
Open the attached RVF file.
You should see a table.
Insert a new row.
Copy a complete row and paste it into a column.
Copy.png
Copy.png (2.22 KiB) Viewed 70 times
Insert here.png
Insert here.png (5.77 KiB) Viewed 70 times
After pasting, the column becomes extremely wide. This happens because of the pasted items.
Inserted Column.png
Inserted Column.png (22.23 KiB) Viewed 70 times
Example with a new Created Table
Inserted in New Table.png
Inserted in New Table.png (2.34 KiB) Viewed 70 times
Additionally, is there a proper way to duplicate a row?
If I select the entire row and try to paste, nothing happens.

If you need any more information, please let me know.

Kind regards
Tom
Sergey Tkachenko
Site Admin
Posts: 18126
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Duplicating Rows from Tables in Richview

Post by Sergey Tkachenko »

1. This table has a fixed height, 694 pixels (table.BestWidth = 694).
So, when you insert a wide item in the first column, the second column becomes very narrow, because the table width is not changed.
More natural resizing happens if you turn on automatic calculation of table width (table.BestWidth = 0). In the table properties dialog, select table width = "auto".

2. When you add a new row below or above the selection, it copies attributes of the current row.
Do you want to copy cells contents?
Post Reply