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

#include <vcl.h>
#pragma hdrstop

#include "HideForTime.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
}
//---------------------------------------------------------------------------
// BeginExample: HideForTime
// Property: ExtCtrls.TTimer.Interval
// Method: Forms.TCustomForm.Hide

// BeginCode
/*
This code uses a button, a timer and a maskedit on a
form. When the user clicks the button, the form
disappears for the period of time specified in the
Interval property of the timer control, then the form
reappears:
*/
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  Timer1->Interval = StrToInt(MaskEdit1->Text);
  Timer1->Enabled = true;
  Hide();
}

void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
  Visible = true;
  Timer1->Enabled = false;
}
// EndCode
// EndExample: HideForTime
//---------------------------------------------------------------------------
