OnAnnToolDestroy example for Delphi
procedure TForm1.LEADAnn1AnnToolDestroy; begin ShowMessage ('You have closed the toolbar.'); end;