I've written a program using Windows in FTN95 (WINAPP, and using 'include <windows.ins>' ). In it, the user can click a button whose callback function then calls the normal Windows 'open file' routine, that puts up a box letting the user see the files in a directory, pick one of them, and then open it by clicking the box's 'Open' button. It works correctly, and all is well.
Except... in the original calling program, that program had earlier put up several other functions with buttons that do other things. And I found by accident, that if the user first clicks the button to put up the open-file box, and then one of the buttons on the original window that do other things, the program gets messed up for various reasons.
Is there a way that, once the user clicks the button to bring up the open-file box, he can't do anything else besides the functions available in that box? Then, once he's navigated around, selected the file he wants, and clicked 'open' (or clicked the X in the upper right corner to cancel the box), and the box vanishes, afterward the functions in the original window now work normally again?
Hope that's clear. Sometimes my descriptions aren't. 😦