X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f58f3d7e0ed959dd6a568a70161ec14ec524feb..cfcab929d4137d7eaf68cfad43601fe8baf461bd:/samples/grid/griddemo.cpp diff --git a/samples/grid/griddemo.cpp b/samples/grid/griddemo.cpp index 9674b3ef79..31e27af240 100644 --- a/samples/grid/griddemo.cpp +++ b/samples/grid/griddemo.cpp @@ -450,6 +450,21 @@ GridFrame::GridFrame() grid->SetCellValue( 0, 4, wxT("Can veto edit this cell") ); + grid->SetColSize(10, 150); + wxString longtext = wxT("abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ\n\n"); + longtext += wxT("With tabs :\n"); + longtext += wxT("Home,\t\thome\t\t\tagain\n"); + longtext += wxT("Long word at start :\n"); + longtext += wxT("ILikeToBeHereWhen I can\n"); + longtext += wxT("Long word in the middle :\n"); + longtext += wxT("When IComeHome,ColdAnd tired\n"); + longtext += wxT("Long last word :\n"); + longtext += wxT("It's GoodToWarmMyBonesBesideTheFire"); + grid->SetCellValue( 0, 10, longtext ); + grid->SetCellRenderer(0 , 10, new wxGridCellAutoWrapStringRenderer); + grid->SetCellEditor( 0, 10 , new wxGridCellAutoWrapStringEditor); + grid->SetCellValue( 0, 11, wxT("K1 cell editor blocker") ); + grid->SetCellValue( 0, 5, wxT("Press\nCtrl+arrow\nto skip over\ncells") ); grid->SetRowSize( 99, 60 );