Shows a modal message box with the text atext and a Cancel button while a long operation runs, and returns True if the operation finished, False if the user canceled it
Source position: msegui.pas line 3342
public function tguiapplication.waitdialog( |
const athread: tthreadcomp = Nil; |
const atext: msestring = ''; |
const caption: msestring = ''; |
const acancelaction: notifyeventty = Nil; |
const aexecuteaction: notifyeventty = Nil; |
const aidleaction: waitidleeventty = Nil; |
const acontinueaction: notifyeventty = Nil |
):Boolean; |
Shows a modal message box with the text atext and a Cancel button while a long operation runs, and returns True if the operation finished, False if the user canceled it. Must be called from the main thread. The operation can be:
In the last two cases, call terminatewait when the work is done to close the dialog with result True; cancelwait closes it as if the user had canceled. acancelaction is called when Cancel is pressed.