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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user