coffeec Posted September 20, 2005 Share Posted September 20, 2005 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. Link to comment Share on other sites More sharing options...
SlimJim Posted September 20, 2005 Share Posted September 20, 2005 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. Link to comment Share on other sites More sharing options...
coffeec Posted September 20, 2005 Author Share Posted September 20, 2005 Where can I find this option? Link to comment Share on other sites More sharing options...
mr_vodka Posted September 20, 2005 Share Posted September 20, 2005 Dacon's Menu control plugin removes the close, minimize, max features from windows. http://www.dacons.net/fmplugins/menucontrol/prodinfo/index.html Link to comment Share on other sites More sharing options...
SlimJim Posted September 20, 2005 Share Posted September 20, 2005 The option is available in Layout mode in the menu Layouts > Layout Setup, General Tab Link to comment Share on other sites More sharing options...
Slobey Posted October 4, 2005 Share Posted October 4, 2005 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. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6786 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now