X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/376d7d9764391ef614ce74e02df62fafabc00501..0e20728015df8aa82bcfa7d9c220b73b82f8c194:/samples/shaped/shaped.cpp diff --git a/samples/shaped/shaped.cpp b/samples/shaped/shaped.cpp index 4d2739e953..df4afac07e 100644 --- a/samples/shaped/shaped.cpp +++ b/samples/shaped/shaped.cpp @@ -47,7 +47,7 @@ // menu ids enum { - Show_Shaped, + Show_Shaped = 100, Show_Transparent, // must be consecutive and in the same order as wxShowEffect enum elements @@ -273,7 +273,11 @@ void MainFrame::OnShowTransparent(wxCommandEvent& WXUNUSED(event)) void MainFrame::OnShowEffect(wxCommandEvent& event) { int effect = wxSHOW_EFFECT_ROLL + event.GetId() - Show_Effect_Roll; - new EffectFrame(this, wx_static_cast(wxShowEffect, effect)); + static wxDirection direction = wxLEFT; + direction = (wxDirection)(((int)direction)<< 1); + if ( direction > wxDOWN ) + direction = wxLEFT ; + new EffectFrame(this, wx_static_cast(wxShowEffect, effect),1000,direction); } // ----------------------------------------------------------------------------