Hello
I want to load a file (txt, rtf) into 2 columns in the TRichViewEdit component.
What is the method for doing this ?
Thanks
Loading text in columns
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Hello
I created a table Like this :
then I loaded a text file into the first column like this :
But the text only flows in the first column and not the second. I want the text to automatically flow into the second column after it has filled the 1st column.
What i really want to do is :
The amount of text that fits in the 1st column of the RichView1 control should be considered as 1 page and the next page in column 2 and so on.
So that when i scroll, both columns will load odd and even page numbers.
Is this possible ? Can you please show a way ?
Thanks a lot for help.
I created a table Like this :
Code: Select all
Tbl := TRvTableItemInfo.CreateEx(1,2,RichView1.RVData);
RichView1.AddItem('table', Tbl);
RichView1.Format;
Code: Select all
if OpenDialog1.Execute then
begin
tbl.Cells[0,0].LoadText(OpenDialog1.FileName,0,0,True);
RichView1.Format;
end;
What i really want to do is :
The amount of text that fits in the 1st column of the RichView1 control should be considered as 1 page and the next page in column 2 and so on.
So that when i scroll, both columns will load odd and even page numbers.
Is this possible ? Can you please show a way ?
Thanks a lot for help.
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: