コード例 #1
0
ファイル: visualeditor.cpp プロジェクト: noriter/wxfb
void VisualEditor::OnWizardPageChanged( WizardEvent &event )
{
    int i = event.GetInt();
    if ( !i )
    {
        AppData()->GetManager()->SelectObject( event.GetPage() );
        return;
    }
    event.Skip();
}
コード例 #2
0
ファイル: wizard.cpp プロジェクト: chtheis/wxFormBuilder
void Wizard::OnWizEvent( WizardEvent& event )
{
    if ( event.IsAllowed() )
    {
        wxEventType eventType = event.GetEventType();

        if ( eventType == wxFB_EVT_WIZARD_PAGE_CHANGED )
        {
			for (size_t i = 0; i < m_pages.GetCount(); ++i) {
				m_pages.Item(i)->Hide();
			}
            event.GetPage()->Show();

            Layout();
        }
#if 0
        else if ( eventType == wxFB_EVT_WIZARD_PAGE_CHANGING )
        {
            wxLogDebug( wxT("Wizard Page changing.") );
        }
        else if ( eventType == wxFB_EVT_WIZARD_CANCEL )
        {
            wxLogDebug( wxT("Wizard Cancel button was pressed.") );
        }
        else if ( eventType == wxFB_EVT_WIZARD_HELP )
        {
            wxLogDebug( wxT("Wizard Help button was pressed.") );
        }
#if wxABI_VERSION >= 20811
        else if ( eventType == wxFB_EVT_WIZARD_FINISHED )
        {
            wxLogDebug( wxT("Wizard Finish button was pressed.") );
        }
#endif
        else if ( eventType == wxFB_EVT_WIZARD_PAGE_SHOWN )
        {
            wxLogDebug( wxT("Wizard Page shown.") );
        }
#endif
    }
}