ImageEn, unit iemview

TImageEnMView.ProgressTask

TImageEnMView.ProgressTask


Declaration

property ProgressTask: TIETask;


Description

Read ProgressTask during the OnProgress event to determine what action is underway.

Read-only


Example

// Showing detailed progress display
procedure TMainForm.ImageEnMView1Progress(Sender: TObject; per: Integer);
begin
  case ImageEnMView1.ProgressTask of
    ietLoading     : Caption := format( 'Loading - %d%%', [per] );
    ietSaving      : Caption := format( 'Saving - %d%%', [per] );
    ietAcquisition : Caption := format( 'Acquiring - %d%%', [per] );
    ietPrinting    : Caption := format( 'Printing - %d%%', [per] );
    ietFilling     : Caption := format( 'Filling - %d%%', [per] );
    else             Caption := format( 'Processing - %d%%', [per] );  // Should not occur
  end;
end;