X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cbd88f222583c128543b0249040a1061f1b06895..ab5c51e5b2e35bc3f0488996ee4b4665fdb68cf4:/demos/life/life.cpp?ds=sidebyside diff --git a/demos/life/life.cpp b/demos/life/life.cpp index f9d00eac79..13376c261c 100644 --- a/demos/life/life.cpp +++ b/demos/life/life.cpp @@ -150,7 +150,7 @@ IMPLEMENT_APP(LifeApp) // some shortcuts #define ADD_TOOL(id, bmp, tooltip, help) \ - toolBar->AddTool(id, bmp, wxNullBitmap, false, wxDefaultCoord, wxDefaultCoord, (wxObject *)NULL, tooltip, help) + toolBar->AddTool(id, wxEmptyString, bmp, wxNullBitmap, wxITEM_NORMAL, tooltip, help) // -------------------------------------------------------------------------- @@ -263,7 +263,7 @@ LifeFrame::LifeFrame() : toolBar->AddSeparator(); #endif // __POCKETPC__ ADD_TOOL(ID_START, tbBitmaps[5], _("Start"), _("Start")); - ADD_TOOL(wxID_STOP, tbBitmaps[6], wxSTOCK_NOFLAGS, _("Stop")); + ADD_TOOL(wxID_STOP, tbBitmaps[6], _("Stop"), _("Stop")); toolBar->Realize(); toolBar->EnableTool(wxID_STOP, false); // must be after Realize() ! @@ -693,7 +693,7 @@ void LifeNavigator::OnClose(wxCloseEvent& event) // canvas constructor LifeCanvas::LifeCanvas(wxWindow *parent, Life *life, bool interactive) : wxWindow(parent, wxID_ANY, wxDefaultPosition, wxSize(100, 100), - wxFULL_REPAINT_ON_RESIZE + wxFULL_REPAINT_ON_RESIZE | wxHSCROLL | wxVSCROLL #if !defined(__SMARTPHONE__) && !defined(__POCKETPC__) |wxSUNKEN_BORDER #else