本文整理汇总了C++中AboutDialog::ShowModal方法的典型用法代码示例。如果您正苦于以下问题:C++ AboutDialog::ShowModal方法的具体用法?C++ AboutDialog::ShowModal怎么用?C++ AboutDialog::ShowModal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AboutDialog
的用法示例。
在下文中一共展示了AboutDialog::ShowModal方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnAbout
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
{
AboutDialog about;
if( about.ShowModal() == wxID_OK )
about.Destroy();
}
示例2: OnABOUTClick
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: OnCommand
// 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: OnAbout
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
{
AboutDialog dlg;
dlg.ShowModal();
}
示例5: OnAbout
void MainFrame::OnAbout(wxCommandEvent &event)
{
AboutDialog *dlg = new AboutDialog(this);
dlg->ShowModal();
dlg->Destroy();
}
示例6: OnAbout
void VAutoDialog::OnAbout(wxCommandEvent& ev)
{
AboutDialog *about = new AboutDialog (this);
about->ShowModal ();
}