Some manual updates; in MDI sample, child frames now have default size/position (hope

it's OK in wxGTK!)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-07-31 09:33:36 +00:00
parent db4365c912
commit bd0df01f3f
8 changed files with 126 additions and 234 deletions

View File

@@ -115,12 +115,12 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event) )
void MyFrame::OnNewWindow(wxCommandEvent& WXUNUSED(event) )
{
// Make another frame, containing a canvas
MyChild *subframe = new MyChild(frame, "Canvas Frame", wxPoint(4, 4), wxSize(100, 100),
MyChild *subframe = new MyChild(frame, "Canvas Frame", wxPoint(-1, -1), wxSize(-1, -1),
wxDEFAULT_FRAME);
char titleBuf[100];
sprintf(titleBuf, "Canvas Frame %d", winNumber);
subframe->SetTitle(titleBuf);
wxString title;
title.Printf("Canvas Frame %d", winNumber);
subframe->SetTitle(title);
winNumber ++;
// Give it an icon (this is ignored in MDI mode: uses resources)