trichview.com

trichview.support




Unable to change the width of a table with the mouse


Return to index


Author

Message

Pieter E.

Posted: 02/06/2005 14:53:44


Dear Sergey,


I've got a problem when inserting a table to TRichViewEdit.

When I've inserted a table, the width of the table seems to be stuck when

changing it with the mouse. The width of the cells are changable but not

the width of the table... :(


My source in C++:

//-----

TRVTableItemInfo *TableItem = new TRVTableItemInfo(4, 4, RichViewEdit1->RVData);


TableItem->BorderStyle = rvtbRaisedColor;

TableItem->CellBorderStyle = rvtbLoweredColor;

TableItem->BorderColor = TableItem->Color;

TableItem->BorderLightColor = clBlack;

TableItem->CellBorderColor = TableItem->Color;

TableItem->CellBorderLightColor = clBlack;


TableItem->BorderWidth = 1;

TableItem->CellBorderWidth = 1;

TableItem->CellPadding = 1;

TableItem->CellVSpacing = 0;

TableItem->CellHSpacing = 0;

TableItem->BorderVSpacing = 0;

TableItem->BorderHSpacing = 0;


TableItem->BestWidth = -50;

TableItem->VRuleWidth = 1;

TableItem->HRuleWidth = 1;


for(int i=0; i<4; i++)

  for(int j=0; j<4; j++)

        {

          TableItem->Cells[i][j]->Clear();

          TableItem->Cells[i][j]->BestWidth = 0;

        }


RichViewEdit1->AddItem("", TableItem);

RichViewEdit1->Format();

//-----


Do you have any idea?


Thanks.


Pieter E.





Powered by ABC Amber Outlook Express Converter