Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!think!snorkelwacker!bloom-beacon!eru!luth!sunic!draken!d88-jwa From: d88-jwa@nada.kth.se (Jon Watte) Newsgroups: comp.sys.mac.programmer Subject: Re: ModalDialog filterprocs Message-ID: <2631@draken.nada.kth.se> Date: 27 Dec 89 14:27:28 GMT References: <10125@saturn.ucsc.edu> <33385@ucbvax.BERKELEY.EDU> Reply-To: d88-jwa@nada.kth.se (Jon W{tte) Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 59 In article <33385@ucbvax.BERKELEY.EDU> oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) writes: >pascal Boolean cutPasteFilter( ... >remember, in pascal a Boolean and an "int" are not the same, or even >compatible. A pascal Boolean TRUE looks like 0x01?? as an integer on the pascal char works, on the other hand... :-) >In addition, your filterProc should also: Many good suggestions deleted. Now, why doesn't the ROMs support these nifty features in a flexible way ? It sure would be "easy" to add ! (At least easier than every programmer doing it his own way) >At least, that is what _my_ filterProcs do. For an example, see my program >"Address Book Plus", from Power-Up! software of San Mateo, CA. Great ! Send me a (free) copy and I'll admire you ! >I am currently adding: >12.) Handle the button, on the extended keyboard to bring up help >about this dialog. >13.) Handle -? or -/ (on the same key in the U.S.) >as synonyms for the button. Remember to handle foreign keyboards as well ! I have ? as Shift-+, and / as shift-7 >There is some justification for all of the above points in the user >interface guidlines. Have I left anything reasonable out? Intelligent cut&paste >Do you think we should have: >a.) smart quotes? (i.e., replace "'" and '"' by the appropriate opening >and closing left and right quote marks.) Nope. There is lotsa room for ambiguities here. Also, these standards differ between coutries. >b.) smart cut & paste? (i.e., when you cut text, it remembers whether the Oh, there it was. Yes, I like this. MS Word uses it to some extent, but not the full-fledged version. >c.) transform to and to in numeric >only fields? Nope. Beep on all non-numerical signs in a numerical.only field. Remember that different countries have different comma-point-thousend-whatever- characters. Happy hacking ! -- --- Stay alert ! - Trust no one ! - Keep your laser handy ! --- h+@nada.kth.se == h+@proxxi.se == Jon Watte longer .sig available on request