From: Bryan M. <bmu...@gm...> - 2005-06-15 19:18:26
|
Hello, I'm writing an app that will open up a CustomDialog asking the user to fill in a number of TextFields. I'm trying to figure out a good design for validating the fields and prompting the user to try again if they left one blank, or entered something invalid. It looks to me like it can only be done after the user clicks OK and I get the result back. I'm having my Background create an alert dialog telling the user what they did wrong, and then go back and redisplay the dialog, which is kind OK, I guess. Any suggestions for improvement? Also, while we're on the subject of CustomDialogs, is there a nice way to copy the text from all TextField components of the CustomDialog into result, other than listing each one out, like so? result.FirstName =3D dlg.components.FirstNameTextField.text result.LastName =3D dlg.components.LastNameTextField.text etc. etc. Thanks, Bryan |