vsiegle Posted March 23, 2005 Posted March 23, 2005 Using Dev7 on XP I created a custom dialog box to delete records. I activated the first two buttons. Scripted button one to delete a record. Scripted button 2 to cancel the dialog and exit the script. All worked as expected when tested. Compiled the database to runtime. Launched and tested the dialog. No problem. Exited and opened the file with Dev7 and tested again and work as expected until I activated the dialog box and instead of using the "Cancel" button I closed the window with the windows close box. When I did this the record was deleted just as if I had clicked the "Delete" button. I confirmed that this behaviour was repeatable in my other solutions. The number one button is considered "default" and I can only assume that the close window box on the title bar of the window is activating button one. Can anyone else confirm this?
Vaughan Posted March 23, 2005 Posted March 23, 2005 Confirmed. Unexpected behaviour perhaps, but not unknown nor undocumented.
DykstrL Posted March 23, 2005 Posted March 23, 2005 Just swap your buttons so clicking the cancel button or the "X" has the same effect. It is frustrating that FileMaker has the default set opposite to what it really should be. I think we've all been there at one time or another.
vsiegle Posted March 24, 2005 Author Posted March 24, 2005 Thanks for the quick response. Just wanted to be sure it was not something local to my setup.
Vaughan Posted March 24, 2005 Posted March 24, 2005 Yup. Must have seemed like a good idea at the time.
Recommended Posts
This topic is 7183 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