wxWidgets wxGridCellEditor question

Hello people,

I hope someone can help me with my wxGridCellEditor problem.
So, I want to edit my grid and I have to use GridCellEditor.

Here is the code I use: (The constructor)
1
2
3
4
5
6
7
8
9
gridCell::gridCell(wxWindow *parentt, wxWindowID idd, wxEvtHandler *evtHandlerr){
    parent = parentt;
    id = idd;
    evtHandler = evtHandlerr;

    wxGridCellAttr* test = new wxGridCellAttr();
    wxRect* testZwei = new wxRect();
    PaintBackground( *testZwei , test );
}


And here I call it:
gridList->SetCellEditor(0,1, new gridCell(this, wxID_ANY, this));

My problem is that my programm crashes after calling this function, where am I wrong?

Thanks in advance.
Kmitska
Topic archived. No new replies allowed.