September 20, 200520 yr Hi, I have a program that opens a new window that runs a new record script. I have a submit button that closes and commits the records based on data entry validation. The problem is that if you close the window using the 'X' button in the window title bar, the record commits as a blank record. My question is there a way to grey out those buttons in the titlebar or is there a script that will do this for us? Thanks in advance.
September 20, 200520 yr Is your layout in the new window set up with "Save Record Changes Automatically" unchecked. That will ensure that you cannot close the window without a dialog box coming up. Of course you can still click save and save a blank record. I would think that data validation should make at least some fields required and prevent committing a blank record.
September 20, 200520 yr Dacon's Menu control plugin removes the close, minimize, max features from windows. http://www.dacons.net/fmplugins/menucontrol/prodinfo/index.html
September 20, 200520 yr The option is available in Layout mode in the menu Layouts > Layout Setup, General Tab
October 4, 200520 yr You can also place a pause in the new record script and hide the status bar. then with the submit script run it as resume instead of pause. This will prevent the window x from closing the window.
Create an account or sign in to comment