The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



TOnPercentDoneEvent


Unit:SDL_sdlbase
Class: none
Declaration: TOnPercentDoneEvent = procedure (Sender: TObject; PercentDone: integer) of object;

The TOnPercentDoneEvent can be used to indicate the progress of a time-consuming process. The parameter PercentDone contains a number between 0 and 100 which corresponds to the state of the process. The following routines trigger an OnPercentDone event:
    redrawing a contour plot
    cluster analysis of TDendrogram
    TGeoDB.RetrieveBLOB
    TGeoDB.RetrievePolygon
    TGeoDB.AddBLOB
    TGeoDB.AddBorder
    TGeoDB.AddCity
    TGeoDB.AddLake
    TGeoDB.AddRiver
    TGeoDB.AddRoad
    TGeoDB.AddRoute
    TGeoDB.AddTown
    TGeoDB.ReplaceBLOB
    TGeoDB.ReplaceBorder
    TGeoDB.ReplaceCity
    TGeoDB.ReplaceLake
    TGeoDB.ReplaceRiver
    TGeoDB.ReplaceRoad
    TGeoDB.ReplaceRoute
    TGeoDB.ReplaceTown
    TGeoDB.GarbageCollection
    TKohonen.Trainit
    TReportListView.ReadFromXMLString
    TReportListView.ReadFromXMLStream
    TReportListView.WriteToXMLStream
    TReportListView.Sort
    TRLData.LoadLinesFromFile
    TRLData.ReadFromXMLString
    TRLData.ReadFromXMLStream
    TRLData.ReadFromOpenXMLFile
    TRLData.WriteToOpenXMLFile
    TRLData.WriteToXMLStream
    TStringArray.Sort
    TMat4D.AppendToBinaryFile
    TMat4D.LoadBinary
    TMat4D.SaveBinary
    TPLSModel.CrossValidateModel
    TDataTable.ExportAsCSV
    TDataTable.ImportFromCSV

Hint: In order to be able to abort a time-consuming operation, Windows has to get control over the application. Thus it is necessary to implement a feedback routine which contains at least the statement "Application.ProcessMessages; ". Otherwise, the routines mentioned above cannot be aborted.



Last Update: 2013-Apr-25