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

#include <vcl.h>
#pragma hdrstop

#include "TCustomMemoLines.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
}
//---------------------------------------------------------------------------
// BeginExample: TCustomMemoLines
// Property: StdCtrls.TCustomMemo.Lines
// Property: Classes.TStrings.Strings

// BeginCode
/*
This example uses a button and a memo control on a form.
When the user clicks the button, the content of the specified
file is loaded into the memo, and the fifth line of the file
is written across the top of the form.
*/
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  Memo1->Lines->LoadFromFile("../readme.txt");
  Caption = Memo1->Lines->Strings[4];
}
// EndCode
// EndExample: TCustomMemoLines
//---------------------------------------------------------------------------
