--- src/ui/frmChildTableViewFrame.cpp.orig Tue Oct 28 02:41:56 2003 +++ src/ui/frmChildTableViewFrame.cpp Tue Oct 28 03:35:26 2003 @@ -76,7 +76,10 @@ // Constructor //////////////////////////////////////////////////////////////////////////////// frmChildTableViewFrame::frmChildTableViewFrame(wxMDIParentFrame* frame, - wxString table, wxString alias, pgDatabase *database) + wxString table, wxString alias, pgDatabase *database): + wxMDIChildFrame(frame, -1, alias, wxDefaultPosition, + wxSize(200, 200), wxRESIZE_BORDER|wxSIMPLE_BORDER ) + { int rowct = 0; m_columnlist = NULL; @@ -101,8 +104,8 @@ int leading; // Create the frame - this->Create(frame, -1, alias, wxDefaultPosition, - wxSize(200, 200), wxRESIZE_BORDER|wxSIMPLE_BORDER ); +// this->Create(frame, -1, alias, wxDefaultPosition, +// wxSize(200, 200), wxRESIZE_BORDER|wxSIMPLE_BORDER ); // Create the table name // wxStaticText *tmpstatic = new wxStaticText(this, -1, @@ -501,8 +504,9 @@ void frmChildTableViewFrame::OnSize(wxSizeEvent& event) { // Get the parent Query Builder - frmQueryBuilder *tmpparent = (frmQueryBuilder*)this->GetParent(); - tmpparent->GetClientWindow()->Refresh(); + // frmQueryBuilder *tmpparent = (frmQueryBuilder*)this->GetParent(); + // tmpparent->GetClientWindow()->Refresh(); + this->Refresh(); wxSize clientsize = this->GetClientSize();