You are here: Symbol Reference > MtxDialogs Namespace > Classes > TMtxProgressDialog Class > public > TMtxProgressDialog.Stop Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxProgressDialog.Stop Method

Call Stop to request the loop to stop executing.

Pascal
procedure Stop;

This is a blocking call in contrast to setting the Cancel property to True which is a non-blocking call. The Stop procedure will not return until the thread has finished and all the related data structures are cleaned up. Usually a request is given to stop execution in the OnDestroy event of the main form, to cancel potential execution of the background thread. If the thread is not running, the procedure will exit immeditally.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!