//---------------------------------------------------------------------------

#ifndef InputText_DialogH
#define InputText_DialogH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include "TntButtons.hpp"
#include "TntStdCtrls.hpp"
#include "TntForms.hpp"
//---------------------------------------------------------------------------
class TInputTextDialog : public TTntForm
{
__published:	// IDE-managed Components
	TTntLabel *MessageLabel;
	TTntEdit *TextEdit;
	TTntBitBtn *CancelBitBtn;
	TTntBitBtn *OkBitBtn;
	void __fastcall TextEditClick(TObject *Sender);
private:	// User declarations
    bool PasswordMode;

	WideString FMessage;

    void __fastcall SetMessage(WideString message);
    WideString __fastcall GetInputText(void);
public:		// User declarations
	__fastcall TInputTextDialog(TComponent* Owner);
    bool __fastcall Execute(void);
    bool __fastcall ExecutePassword(AnsiString message = "");

	__property WideString Message = {read = FMessage, write = SetMessage};
    __property WideString InputText = {read = GetInputText};
};
//---------------------------------------------------------------------------
extern PACKAGE TInputTextDialog *InputTextDialog;
//---------------------------------------------------------------------------
#endif
