Therefore, if you want to distinguish between your own close routine (that uses DIALOG END) and the System Menu/Close selection, return an appropriate value with the user-defined parameter of the DIALOG END statement. This value is then passed to the calling code.
Since the system Close menu item will close the dialog without regard to a return value, the dialog will return zero to the calling code.
Therefore, detecting how the dialog was closed from within the _calling_ code is simply a matter of setting the return value in the callback, and checking the dialog return value.
Clear as mud?

------------------
Lance
PowerBASIC Support
mailto:[email protected][email protected]</A>
Leave a comment: