trichview.support
ApplyTextStyle into Table |
Author |
Message |
dekavita |
Posted: 05/27/2004 12:56:59 Though I would like to change all items into TextStyle:0, What should I do ? -- source code : C++Builder -- // set default table DataRichView->Clear(); TRVTableItemInfo* table = new TRVTableItemInfo( 1, 3, DataRichView->RVData); table->Cells[0][0]->Clear(); table->Cells[0][0]->AddNLWTag("Name: ",0, 1, 0); table->Cells[0][0]->AddNLWTag(WideString("name"), 6, -1, (int)StrNew("Name")); table->Cells[0][1]->Clear(); table->Cells[0][1]->AddNLWTag("Caption: ",0,1,0); table->Cells[0][1]->AddNLWTag(WideString("caption"), 6, -1, (int)StrNew("Caption")); table->Cells[0][2]->Clear(); table->Cells[0][2]->AddNLWTag("Item: ",0,1,0); table->Cells[0][2]->AddNLWTag(WideString("item"), 6, -1, (int)StrNew("Item")); table->BorderWidth = 1; table->CellBorderWidth = 1; DataRichView->AddItem("",table); DataRichView->Format(); // change to TextStyle -> 0 DataRichView->SelectAll(); DataRichView->ApplyTextStyle(0); // ... NG |
Powered by ABC Amber Outlook Express Converter