trichview.com

trichview.support




Re: Scale


Return to index


Author

Message

Alexander Fatykhov

Posted: 05/21/2003 17:44:31


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