brownees Posted September 26, 2004 Posted September 26, 2004 In Windows the Escape key is giving me some grief. I would like in a number of situations to use the default button in a dialog box for "OK" or "Continue" but a user hitting the Escape key expects to get the "Cancel" option. I have therefore always coded the "OK" option to button 2, meaning the user always has to click the button rather than being able to hit Enter. Now that Filemaker 7 allows field input within a custom dialog box, the data is only entered via the default button, ie so if the user enters data in the field input, then has a change of mind and hits Escape, the data is entered into the field anyway. Please confirm I've got this right. Are there any workarounds to make this a bit more user friendly? Appreciate any help. Philip
brownees Posted September 28, 2004 Author Posted September 28, 2004 brownees wrote "In Windows the Escape key is giving me some grief. I would like in a number of situations to use the default button in a dialog box for "OK" or "Continue" but a user hitting the Escape key expects to get the "Cancel" option. I have therefore always coded the "OK" option to button 2, meaning the user always has to click the button rather than being able to hit Enter. Now that Filemaker 7 allows field input within a custom dialog box, the data is only entered via the default button, ie so if the user enters data in the field input, then has a change of mind and hits Escape, the data is entered into the field anyway. Please confirm I've got this right. Are there any workarounds to make this a bit more user friendly? Appreciate any help" Has nobody come across this issue?? [color:"purple"]
Deep Thought II Posted September 29, 2004 Posted September 29, 2004 yes.. u're right, when a custom dialog shows up with an input field, hitting escape will *replace* that field with what's entered in the custom dialog. and if u happen to have blank... that field will be erased if it had something in it.. p.s. platform: windows 2003 ent. server dunno any workarounds yet...
Vaughan Posted September 30, 2004 Posted September 30, 2004 FWIW, I never link custom dialogs to "real" fields, only to globals. The rest of the script after the custom dialog performs validation and processes the entry, then sets the new value into the record. Can the Escape key or Cancel be trapped for with Get(LastMessageChoice) or Get(LastError)?
MoonShadow Posted September 30, 2004 Posted September 30, 2004 Now that Filemaker 7 allows field input within a custom dialog box, the data is only entered via the default button,... vs. 6's Custom Dialog also accepted User input; and the button response was the same. Field input is only changed when one selects the default (1st) button no matter what you label it. I too only use globals because that is the only way to validate before field set is allowed.
Recommended Posts
This topic is 7622 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