+
+ // Demonstrate colspan and rowspan
+ wxRichTextCell* cell = table->GetCell(1, 0);
+ cell->SetColspan(2);
+ r.SetFocusObject(cell);
+ cell->Clear();
+ r.WriteText("This cell spans 2 columns");
+
+ cell = table->GetCell(1, 3);
+ cell->SetRowspan(2);
+ r.SetFocusObject(cell);
+ cell->Clear();
+ r.WriteText("This cell spans 2 rows");
+
+ cell = table->GetCell(2, 1);
+ cell->SetColspan(2);
+ cell->SetRowspan(3);
+ r.SetFocusObject(cell);
+ cell->Clear();
+ r.WriteText("This cell spans 2 columns and 3 rows");
+