예제 #1
0
파일: wxtorus.cpp 프로젝트: berise/wxTorus
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
{
	AboutDialog about;

	if( about.ShowModal() == wxID_OK )
		about.Destroy();
}
예제 #2
0
파일: mainframe.cpp 프로젝트: NWNX/nwnx4
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();
}
예제 #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);
	}
}
예제 #4
0
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
{
    AboutDialog dlg;
    dlg.ShowModal();
}
예제 #5
0
void MainFrame::OnAbout(wxCommandEvent &event)
{
	AboutDialog *dlg = new AboutDialog(this);
	dlg->ShowModal();
	dlg->Destroy();
}
예제 #6
0
void VAutoDialog::OnAbout(wxCommandEvent& ev)
{
	AboutDialog *about = new AboutDialog (this);
	about->ShowModal ();
}