NewDialog* dlg = new NewDialog(Manager::Get()->GetAppWindow());
if (dlg->Show() != wxID_OK)
Manager::Get()->GetLogManager()->Log(_("Dialog Error"));
wxDialog::Show
bool Show(const bool show)
Hides or shows the dialog.
Parameters
show
If true, the dialog box is shown and brought to the front; otherwise the box is hidden. If false and the dialog is modal, control is returned to the calling program.
wxDialog::ShowModal
int ShowModal()
Shows a modal dialog. Program flow does not return until the dialog has been dismissed with wxDialog::EndModal.
Return value
The return value is the value set with wxDialog::SetReturnCode.