--- sbbs/sbbs3/ctrl/statsformunit.cpp 2018/04/24 16:39:34 1.1 +++ sbbs/sbbs3/ctrl/statsformunit.cpp 2018/04/24 16:41:03 1.1.1.2 @@ -1,12 +1,12 @@ /* Synchronet Control Panel (GUI Borland C++ Builder Project for Win32) */ -/* $Id: statsformunit.cpp,v 1.1 2018/04/24 16:39:34 root Exp $ */ +/* $Id: statsformunit.cpp,v 1.1.1.2 2018/04/24 16:41:03 root Exp $ */ /**************************************************************************** * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2000 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2004 Rob Swindell - http://www.synchro.net/copyright.html * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * @@ -47,28 +47,13 @@ TStatsForm *StatsForm; __fastcall TStatsForm::TStatsForm(TComponent* Owner) : TForm(Owner) { -// OutputDebugString("StatsForm constructor\n"); - - MainForm=(TMainForm*)Application->MainForm; -} -//--------------------------------------------------------------------------- -void __fastcall TStatsForm::FormShow(TObject *Sender) -{ -// OutputDebugString("StatsForm::FormShow\n"); - - MainForm->ViewStatsMenuItem->Checked=true; - MainForm->ViewStatsButton->Down=true; } //--------------------------------------------------------------------------- - void __fastcall TStatsForm::FormHide(TObject *Sender) { - MainForm->ViewStatsMenuItem->Checked=false; - MainForm->ViewStatsButton->Down=false; + MainForm->ViewStats->Checked=false; } //--------------------------------------------------------------------------- - - void __fastcall TStatsForm::LogButtonClick(TObject *Sender) { Application->CreateForm(__classid(TStatsLogForm), &StatsLogForm);