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

#include <vcl.h>
#pragma hdrstop

#include "InputBox.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
}
//---------------------------------------------------------------------------
// BeginExample: InputBox
// Routine: Dialogs.InputBox

// BeginCode
/*
This example displays an input dialog box when the user
clicks a button on the form. The input dialog box includes a
prompt string and a default string. The string the user enters
in the dialog box is stored in the InputString variable and
the text edit.
*/
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  AnsiString InputString = InputBox("Input Box", "Prompt", "Default string");
  Edit1->Text = InputString;	
}
// EndCode
// EndExample: InputBox
//---------------------------------------------------------------------------
