** This is part of the CTSim program
** Copyright (C) 1983-2001 Kevin Rosenberg
**
-** $Id: backgroundmgr.cpp,v 1.15 2001/03/09 21:31:51 kevin Exp $
+** $Id$
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
m_sizeCell.Set (m_sizeGauge.x + m_sizeLabel.x + m_sizeCellSpacing.x + m_sizeButton.x, 25);
+ theApp->getMainFrame()->SetFocus();
Show(false);
}
resizeWindow();
if (m_iNumTasks == 1) {
- SetFocus();
+ m_pCanvas->SetFocus();
Show(true);
- theApp->getMainFrame()->SetFocus(); // necessary to keep wxWindows from crashing
}
}
}
pSupervisor->ackRemoveBackgroundManager();
resizeWindow();
- if (m_iNumTasks <= 0)
+ if (m_iNumTasks <= 0) {
+ m_pCanvas->SetFocus();
Show(false);
+ }
}
void