git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50248
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Show_Transparent,
// must be consecutive and in the same order as wxShowEffect enum elements
Show_Transparent,
// must be consecutive and in the same order as wxShowEffect enum elements
void MainFrame::OnShowEffect(wxCommandEvent& event)
{
int effect = wxSHOW_EFFECT_ROLL + event.GetId() - Show_Effect_Roll;
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);
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------