--- sbbs/src/sbbs3/ctrl/servicesformunit.cpp 2018/04/24 16:41:24 1.1 +++ sbbs/src/sbbs3/ctrl/servicesformunit.cpp 2018/04/24 16:44:23 1.1.1.2 @@ -1,12 +1,12 @@ /* Synchronet Control Panel (GUI Borland C++ Builder Project for Win32) */ -/* $Id: servicesformunit.cpp,v 1.1 2018/04/24 16:41:24 root Exp $ */ +/* $Id: servicesformunit.cpp,v 1.1.1.2 2018/04/24 16:44:23 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 2004 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2009 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 * @@ -54,3 +54,18 @@ void __fastcall TServicesForm::FormHide( } //--------------------------------------------------------------------------- + + +void __fastcall TServicesForm::LogLevelUpDownChangingEx(TObject *Sender, + bool &AllowChange, short NewValue, TUpDownDirection Direction) +{ + if(NewValue < 0 || NewValue > LOG_DEBUG) + AllowChange = false; + else { + MainForm->services_startup.log_level = NewValue; + LogLevelText->Caption = LogLevelDesc[NewValue]; + MainForm->SaveIniSettings(Sender); + } +} +//--------------------------------------------------------------------------- +