The Query Close is called before the Scorpion application terminates. The
event can be used to deny termination or/and to perform an action before
closing.
Example 1: Query Close
def Handle_System_QueryClose(): # # Return 1 to refuse CLOSE command # Return 0 for default handling # if MessageDlg('Do you want to close',2,3)==7: return 1 return 0 |