protected static function CreateGridAttributeForText() { $text_attr = new wxGridCellAttr(); $text_attr->SetEditor(new wxGridCellTextEditor(1024)); $text_attr->SetRenderer(new wxGridCellStringRenderer()); $text_attr->SetReadOnly(TRUE); return $text_attr; }