1. corrected bug in MDI sample (which resulted in missing horz scrollbar)
2. wxRegKey::Rename() added, regtest sample shows copying/moving/renaming keys and values now 3. using wxLog() insread of WriteText() contorsions in the listctrl sample, show client data from events in the log messages git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -248,6 +248,9 @@ void MyFrame::OnNewWindow(wxCommandEvent& WXUNUSED(event) )
|
||||
// Associate the menu bar with the frame
|
||||
subframe->SetMenuBar(menu_bar);
|
||||
|
||||
subframe->CreateStatusBar();
|
||||
subframe->SetStatusText(title);
|
||||
|
||||
int width, height;
|
||||
subframe->GetClientSize(&width, &height);
|
||||
MyCanvas *canvas = new MyCanvas(subframe, wxPoint(0, 0), wxSize(width, height));
|
||||
@@ -257,9 +260,6 @@ void MyFrame::OnNewWindow(wxCommandEvent& WXUNUSED(event) )
|
||||
// Give it scrollbars
|
||||
canvas->SetScrollbars(20, 20, 50, 50);
|
||||
|
||||
subframe->CreateStatusBar();
|
||||
subframe->SetStatusText(title);
|
||||
|
||||
subframe->Show(TRUE);
|
||||
}
|
||||
|
||||
@@ -357,7 +357,9 @@ void MyCanvas::OnDraw(wxDC& dc)
|
||||
dc.DrawRoundedRectangle(150, 150, 100, 50, 20);
|
||||
|
||||
dc.DrawEllipse(250, 250, 100, 50);
|
||||
#if wxUSE_SPLINES
|
||||
dc.DrawSpline(50, 200, 50, 100, 200, 10);
|
||||
#endif // wxUSE_SPLINES
|
||||
dc.DrawLine(50, 230, 200, 230);
|
||||
dc.DrawText("This is a test string", 50, 230);
|
||||
|
||||
|
Reference in New Issue
Block a user