X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fbackgroundmgr.cpp;fp=src%2Fbackgroundmgr.cpp;h=34f568bccbc1e7c2fa12509dc0758ffe5fd3a06c;hp=b6d0bd66d0091744e88e79f324da91fdf02638c8;hb=fada6fda06c0b0127552ff8bcb169a737d1e828f;hpb=3b09207d7c37bc3d48e331657353123ed2f66ed9 diff --git a/src/backgroundmgr.cpp b/src/backgroundmgr.cpp index b6d0bd6..34f568b 100644 --- a/src/backgroundmgr.cpp +++ b/src/backgroundmgr.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2001 Kevin Rosenberg ** -** $Id: backgroundmgr.cpp,v 1.6 2001/02/25 06:32:12 kevin Exp $ +** $Id: backgroundmgr.cpp,v 1.7 2001/02/25 07:36:26 kevin Exp $ ** ** 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 @@ -67,7 +67,7 @@ BackgroundManager::BackgroundManager () m_sizeButton.Set (70, 20); m_sizeCell.Set (m_sizeGauge.x + m_sizeLabel.x + m_sizeCellSpacing.x + m_sizeButton.x, 25); - + Show(false); } @@ -142,7 +142,6 @@ BackgroundManager::OnAddTask (wxCommandEvent& event) resizeWindow(); if (m_iNumTasks == 1) { - theApp->getMainFrame()->SetFocus(); // necessary to keep wxWindows from crashing Show(true); theApp->getMainFrame()->SetFocus(); // necessary to keep wxWindows from crashing } @@ -232,7 +231,7 @@ BackgroundManager::resizeWindow() IMPLEMENT_DYNAMIC_CLASS(BackgroundManagerCanvas, wxPanel) BEGIN_EVENT_TABLE(BackgroundManagerCanvas, wxPanel) -EVT_PAINT(BackgroundManagerCanvas::OnPaint) +//EVT_PAINT(BackgroundManagerCanvas::OnPaint) END_EVENT_TABLE() BackgroundManagerCanvas::BackgroundManagerCanvas (BackgroundManager* pMgr) @@ -240,7 +239,7 @@ BackgroundManagerCanvas::BackgroundManagerCanvas (BackgroundManager* pMgr) { } - +#if 0 void BackgroundManagerCanvas::OnPaint (wxPaintEvent& event) { @@ -248,3 +247,4 @@ BackgroundManagerCanvas::OnPaint (wxPaintEvent& event) // dc.DrawLine (0, 0, 30, 30); // dc.DrawLine (30,0, 0, 30); } +#endif \ No newline at end of file