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:
parent
4c44af6c4a
commit
38f089def0
|
@ -847,6 +847,11 @@ void MainFrame::MenuPopped(wxMenuEvent &evt)
|
|||
// uses dialog_opened as a nesting counter
|
||||
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);
|
||||
StartModal();
|
||||
int ret = dlg->ShowModal();
|
||||
|
|
Loading…
Reference in New Issue