trichview.com

trichview.support




Re: Scale


Return to index


Author

Message

Sergey Tkachenko

Posted: 05/22/2003 17:04:17


It sets BestWidth = BestWidth (?)



> Hello, Sergey!

> You wrote:

>

>  ST> Well, you can try to scale document by changing all font sizes,

>  ST> indents, etc. manually ...

>

> what is wrong in this code - it doesn't want to set cell width smaller

>

>    for (int i = 0; i < rv->ItemCount; i++)

>     if (rv->GetItemStyle(i)==rvsTable)

>      {

>          TRVTableItemInfo *t =

> dynamic_cast<TRVTableItemInfo*>(rv->GetItem(i));

>

>          for (int r=0; r<t->Rows->Count; r++)

>            for (int c=0; c<t->Rows->Items[r]->Count; c++)

>              if (t->Cells[r][c])

>               t->SetCellBestWidth(t->Cells[r][c]->BestWidth,r,c);

>          t->Changed();

>      }

>

>





Powered by ABC Amber Outlook Express Converter