trichview.com

trichview.support




Re: HTML-like cellwidths


Return to index


Author

Message

Sergey Tkachenko

Posted: 05/29/2002 9:48:47


   table := TRVTableItemInfo.CreateEx(2,2, RichViewEdit1.RVData);

   table.BorderWidth := 1;

   table.CellBorderWidth := 1;


   table.MergeCells(1,0,2,1,False);

   table.Cells[0,1].BestWidth := -100;


   table.Cells[0,0].Clear;

   table.Cells[0,0].AddNL('Cell 1',0,0);


   table.Cells[0,1].Clear;

   table.Cells[0,1].AddNL('Cell 2 - 100% of the space left over ',0,0);


   table.Cells[1,0].Clear;

   table.Cells[1,0].AddNL('Row 2 long sentence ',0,0);


   RichViewEdit1.InsertItem('', table);



> in HTML it is possible to do the following:

>

> +---------------------+--------------------------------------+

> | Cell 1              | Cell 2 - 100% of the space left over |

> +---------------------+--------------------------------------+

> | Row 2 long sentence |                                      |

> +---------------------+--------------------------------------+

>






Powered by ABC Amber Outlook Express Converter