OnItemSelected (ImageList Control) example for C++ Builder

void __fastcall TForm1::LEADImgList1ItemSelected (TObject *Sender,

      int nIndex)

{

 ShowMessage(LEADImgList1->Item[nIndex]->Text  + " was selected!");

}