The Query Stop event is called before Scorpion is set in Stopped mode. Example 1:
User to Confirm Stop Request
def Handle_System_QueryStop(): # # Return 1 to refuse STOP command # Return 0 for default handling # if MessageDlg('Do you want to stop',2,3)==7: return 1 return 0
|