OnBitmapDataPathClosed example for C++ Builder
bool gBtmpClosed; // Global Variable
void __fastcall TForm1::LEADImage1BitmapDataPathClosed ()
{
gBtmpClosed= false;
ShowMessage ( "Closed" ) ;
}
void __fastcall TForm1::Button1Click(TObject *Sender)
{
gBtmpClosed= true;
LEADImage1->BitmapDataPath = "http://www.leadtools.com/Home2/vertmkts/images/v13web.jpg";
while ( gBtmpClosed )
Application->ProcessMessages ( ) ;
LEADImage1->BitmapDataPath= "http://www.leadtools.com/images/end-user.jpg";
}