//---------------------------------------------------------------------------
/*
Remote Train Control Program for Windows

(c) Copyright 2019 by Mark DiVecchio

    This file is part of Remote Train Control.

    Remote Train Control is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Remote Train Control is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Remote Train Control.  If not, see <http://www.gnu.org/licenses/>.

*/
//---------------------------------------------------------------------------
#ifndef Message_PopupH
#define Message_PopupH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
//---------------------------------------------------------------------------
class TMessagePopup : public TForm
{
__published:	// IDE-managed Components
	TLabel *MessageLine;
	TLabel *StatusLine;
    TButton *CancelButton;
	TCheckBox *RepeatPlayback;
	TImage *Copyright;
	void __fastcall CancelButtonClick(TObject *Sender);
    void __fastcall CopyrightClick(TObject *Sender);
    void __fastcall FormShow(TObject *Sender);
private:	// User declarations
	WPARAM WParam;
    LPARAM LParam;
    int EngineNo, TIUNo;
    HWND ParentHandle;
public:		// User declarations
	__fastcall TMessagePopup(TComponent* Owner);
   	__fastcall TMessagePopup(TComponent* Owner, HWND Parent, WPARAM wp, LPARAM lp);
};
//---------------------------------------------------------------------------
//extern PACKAGE TMessagePopup *MessagePopup;
//---------------------------------------------------------------------------
#endif
