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

#include <vcl.h>
#pragma hdrstop

#include "FilterComboBoxFilter.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
	: TForm(Owner)
{
}
//---------------------------------------------------------------------------
// BeginExample: FilterComboBoxFilter
// Property: FileCtrl.TFilterComboBox.Filter
// Property: FileCtrl.TFileListBox.Mask
// Property: FileCtrl.TFilterComboBox.Mask

// BeginCode
/*
This example uses a filter combo box and a file list box on
a form. When the user selects a filter in the filter combo
box, the file list box displays only files which match the
selected mask:
*/
void __fastcall TForm1::FilterComboBox1Change(TObject *Sender)
{
  FileListBox1->Mask = FilterComboBox1->Mask;
}

void __fastcall TForm1::FormCreate(TObject *Sender)
{
  FilterComboBox1->Filter = "All files (*.*)|*.*| Executable files (*.exe)|*.exe";
}
// EndCode
// EndExample: FilterComboBoxFilter
//---------------------------------------------------------------------------
