trichview.com

trichview.support




table and picture


Return to index


Author

Message

Richard

Posted: 03/03/2003 17:44:18


Hi everyone, I have a question about  table and picture. I select a picture

in RichViewEdit and put it into a table's cell. But after I did so, I find

that RichViewEdit can't be cleared, why?

The code is here:

   gr =RichViewEdit1->GetSelectedImage();

   if(gr)

  {

     TRVTableItemInfo* table = new TRVTableItemInfo(1,2,

                          RichViewEdit1->RVData);


    table->Cells[0][1]->BestWidth =gr->Width;

    table->Cells[0][1]->BestHeight =gr->Height;

    table->Cells[0][1]->AddPictureEx("",gr,0,rvvaBaseline);

    if (RichViewEdit1->InsertItem("", table))

    {

    }

}

   

Thanks.





Powered by ABC Amber Outlook Express Converter