Willy Wankalot
2009-07-06 17:20:00 UTC
Hi
I see lots of examples of grids that look like this ...
wxGrid *grid = new wxGrid(...);
grid->CreateGrid(...);
grid->SetColLabelValue(...);
Is there a way for me to subclass the grid and initialize it from within the
grid itself?
Like, when I create a wxNotebook, I just subclass wxNotebook as MyNotebook
and then add the tabs within the constructor.
But I can't do this in wxGrid because wxGrid::CreateGrid() needs to be
called first.
Is there an OnInit()-like event for the wxGrid where I can move its initial
setup code?
Thanks for any help.
I see lots of examples of grids that look like this ...
wxGrid *grid = new wxGrid(...);
grid->CreateGrid(...);
grid->SetColLabelValue(...);
Is there a way for me to subclass the grid and initialize it from within the
grid itself?
Like, when I create a wxNotebook, I just subclass wxNotebook as MyNotebook
and then add the tabs within the constructor.
But I can't do this in wxGrid because wxGrid::CreateGrid() needs to be
called first.
Is there an OnInit()-like event for the wxGrid where I can move its initial
setup code?
Thanks for any help.