Re: [Anygui-users] Simple Validations
Andy Dent <[email protected]> Tue, 11 Mar 2003 06:59:16 +0800
| Newsgroups | gmane.comp.python.anygui.devel |
|---|---|
| Message-ID | <a05111704ba92c28c6f66@[203.23.218.97]> |
At 8:52 AM +0100 10/3/03, Magnus Lie Hetland wrote: >In the present version I don't think there is an elegant solution. >You'd have to use some sort of CGI-like thing; e.g. when pressing some >form of submit button (like "OK" or something) you'd check whether the >fields were OK. > I don't think this is going to be acceptable design even in a first release. (Distinguishing between design and implementation - we can have a better design than the early releases implement!) I've developed forms mapping interfaces for databases to GUI (PowerPlant on Mac and MFC on Windows) used fairly widely and in complex apps. You need some kind of hook for an attached user method or virtual override to be called between fields, as the user tabs from field to field or clicks in other controls. eg: <http://www.oofile.com.au/oofile_ref/html/classdb_edit_helper.html#db_edit_helpera13> Batch validation as used by CGI is NOT sufficient. -- Andy Dent BSc MACS AACM http://www.oofile.com.au/ OOFILE - Database, Reports, Graphs, GUI for c++ on Mac, Unix & Windows PP2MFC - PowerPlant->MFC portability ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf