OpenFileRequester - how to handle Cancel kind of events?
Posted: Mon Apr 13, 2020 3:15 pm
Its all fine when using OpenFileRequester when it comes to the branch where user selects one or more files. The specified back function gets called and file info is passed on to NextSelectedFile().
But, user can also close file dialog or press cancel button to close file open dialog window.
Help/Documentation says:
I am not sure on how to recognize and handle this (cancel) situation. Documentation says and tests i tried show that in such case callback is not triggered at all. Perhaps this dialog need 2 callbacks?!? or some other mechanism/way...
But, user can also close file dialog or press cancel button to close file open dialog window.
Help/Documentation says:
Callback The callback to be called if the user has selected one or several file. It won't be called if the user canceled the requester. It has to use the following syntax:
Procedure Callback()
; Code here
EndProcedure
later....
Return value
None.
I am not sure on how to recognize and handle this (cancel) situation. Documentation says and tests i tried show that in such case callback is not triggered at all. Perhaps this dialog need 2 callbacks?!? or some other mechanism/way...