PageCount (ImageList Control) example for C++ Builder

Write OnScroll event handler as follows:

 

void __fastcall TForm1::LEADImgList1Scroll(TObject *Sender)

{
ShowMessage("Page: " + IntToStr(LEADImgList1->CurrentPage) + " of " + 
                  IntToStr(LEADImgList1->PageCount));
}