Example #1
0
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
{
	AboutDialog about;

	if( about.ShowModal() == wxID_OK )
		about.Destroy();
}
Example #2
0
void MainFrame::OnABOUTClick( wxCommandEvent& event )
{
	AboutDialog *dlg = 
		new AboutDialog(this, -1, wxT("About NWNX"), wxPoint(100,100), wxSize(200,200),
		wxDEFAULT_FRAME_STYLE |
		wxRESIZE_BORDER);
	dlg->ShowModal();
}
Example #3
0
// OnCommand. Handles command messages.
void MainWnd::OnCommand (int cmdId) {
	switch (cmdId) {

	case ID_FILE_OPENSCRIPT:
		{
			TCHAR pathBuff[MAX_PATH];
			if (this->GetOpenFilePath (pathBuff, sizeof(pathBuff)/sizeof(pathBuff[0]), 
										GLSRUN_APP_CMNDLG_FILTERS, 1, GLSRUN_APP_CMNDLG_DEFEXT))
			{
				OpenScript (pathBuff);
			}
		}
		break;

	case ID_FILE_EXIT:
		this->Destroy ();
		break;

	// View 
	case ID_VIEW_CONSOLE:
		ToggleConsoleWindowView ();
		break;

	case ID_VIEW_FULLSCREEN:
		EnterFullScreenMode ();
		break;

	case ID_CONTROL_REPLAY:
		RunScript ();
		break;

	case ID_CONTROL_PAUSE:
		if (m_paused) {
			m_paused = !m_pScriptHostDriver->GetScriptHost()->ResumeRenderLoop ();
		} else {
			m_paused = m_pScriptHostDriver->GetScriptHost()->PauseRenderLoop ();			
		}
		this->UpdateUI ();
		break;

	case ID_HELP_ABOUT:
	{
		AboutDialog dlgAbout;
		dlgAbout.ShowModal (this);
	}
	break;

	default:
		MainWindow::OnCommand (cmdId);
	}
}
Example #4
0
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
{
    AboutDialog dlg;
    dlg.ShowModal();
}
Example #5
0
void MainFrame::OnAbout(wxCommandEvent &event)
{
	AboutDialog *dlg = new AboutDialog(this);
	dlg->ShowModal();
	dlg->Destroy();
}
Example #6
0
void VAutoDialog::OnAbout(wxCommandEvent& ev)
{
	AboutDialog *about = new AboutDialog (this);
	about->ShowModal ();
}