X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..e1efca652844273c3e8d32c7e5f442b87e455ca7:/samples/dnd/dnd.cpp diff --git a/samples/dnd/dnd.cpp b/samples/dnd/dnd.cpp index 038b87eea2..7916600905 100644 --- a/samples/dnd/dnd.cpp +++ b/samples/dnd/dnd.cpp @@ -141,7 +141,7 @@ public: { wxPaintDC dc(this); - if ( m_bitmap.Ok() ) + if ( m_bitmap.IsOk() ) { PrepareDC(dc); @@ -177,7 +177,7 @@ public: { wxPaintDC dc(this); - if ( m_metafile.Ok() ) + if ( m_metafile.IsOk() ) { PrepareDC(dc); @@ -1177,7 +1177,7 @@ void DnDFrame::OnHelp(wxCommandEvent& /* event */) wxT("it to wordpad or any other droptarget accepting text (and of course you can just drag it\n") wxT("to the right pane). Due to a lot of trace messages, the cursor might take some time to \n") wxT("change, don't release the mouse button until it does. You can change the string being\n") - wxT("dragged in in \"File|Test drag...\" dialog.\n") + wxT("dragged in \"File|Test drag...\" dialog.\n") wxT("\n") wxT("\n") wxT("Please send all questions/bug reports/suggestions &c to \n") @@ -1327,7 +1327,7 @@ void DnDFrame::OnCopyBitmap(wxCommandEvent& WXUNUSED(event)) wxBITMAP_TYPE_BMP #endif ); - if (!image.Ok()) + if (!image.IsOk()) { wxLogError( wxT("Invalid image file...") ); return; @@ -1596,7 +1596,7 @@ DnDShapeDialog::DnDShapeDialog(wxFrame *parent, DnDShape *shape) // attributes wxStaticBox* box = new wxStaticBox( this, wxID_ANY, wxT("&Attributes") ); wxStaticBoxSizer* attrSizer = new wxStaticBoxSizer( box, wxHORIZONTAL ); - wxFlexGridSizer* xywhSizer = new wxFlexGridSizer( 4, 2 ); + wxFlexGridSizer* xywhSizer = new wxFlexGridSizer( 2 ); wxStaticText* st;