Made the configuration dialogs stay on top so that they would not be covered by the main window.

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1447 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
skidau 2015-05-18 13:52:29 +00:00
parent 4c44af6c4a
commit 38f089def0
1 changed files with 5 additions and 0 deletions

View File

@ -847,6 +847,11 @@ void MainFrame::MenuPopped(wxMenuEvent &evt)
// uses dialog_opened as a nesting counter // uses dialog_opened as a nesting counter
int MainFrame::ShowModal(wxDialog* dlg) int MainFrame::ShowModal(wxDialog* dlg)
{ {
if (gopts.keep_on_top)
dlg->SetWindowStyle(dlg->GetWindowStyle() | wxSTAY_ON_TOP);
else
dlg->SetWindowStyle(dlg->GetWindowStyle() & ~wxSTAY_ON_TOP);
CheckPointer(dlg); CheckPointer(dlg);
StartModal(); StartModal();
int ret = dlg->ShowModal(); int ret = dlg->ShowModal();