ImageEn, unit iemview

TImageEnMView.OnImageIDRequestEx

TImageEnMView.OnImageIDRequestEx


Declaration


property OnImageIDRequestEx: TIEImageIDRequestExEvent;


Description


Occurs whenever an image is required if you have specified a value for the ImageID property.

ID is the value you have specified in ImageID property;
Bitmap is the image to display. It is a TIEBitmap (use OnImageIDRequest if you require a TBitmap). The bitmap is copied in TImageEnMView, and then automatically freed.


Demo


  Demos\Multi\Multi-OnDemand\MViewOnRequest.dpr



Example


procedure TMyForm.ImageEnMViewOnImageIDRequestEx(Sender: TObject; ID: integer; var Bitmap: TIEBitmap);
begin
  // Create the image dynamically
  Bitmap := TIEBitmap.create;
  GenerateChartOfID(ID, Bitmap);
end;


See Also


- OnImageIDRequest
- OnGetLoadFilename