trichview.support
Text placement problem in Cells. |
Author |
Message |
Darryl Strickland |
Posted: 06/22/2004 16:23:57 I have a simple table embedded in another table. In this table, there are only two column with several rows. I added text to column two of each row, the text starts as if it was wrapped and started on the second line in the cell. As I add to the cell it works correctly but it always starts as on line two. Example Cells[0,0] Cells[0,1] 2B: <------ I need it to start HERE. Joe Smith Bill Smith Steve Smith 3B: <------ I need it to start HERE. Steve Jones Bill Jones This is repeated at every Cells[iRow,1]. Here's the kind of logic being used although I have modified the code to just demonstrate. SubTable1 := TRVTableItemInfo.CreateEx(6, 2, MasterTable.Cells[4, 1].GetRVData); with SubTable1 do begin with Cells[0, 0] do begin BestWidth := 30; Clear; AddNL('2B:', 8, 1); end; with Cells[0, 1] do begin AddNL('Joe Smith', 11, 0); AddNL('Bill Smith', 11, 0); AddNL('Steve Smith', 11, 0); end; with Cells[1, 0] do begin BestWidth := 30; Clear; AddNL('3B:', 8, 1); end; with Cells[1, 1] do begin AddNL('Steve Jones', 11, 0); AddNL('Bill Jones', 11, 0); end; end; |
Powered by ABC Amber Outlook Express Converter