Path: utzoo!utgpu!watmath!iuvax!rutgers!tut.cis.ohio-state.edu!dinghy.cis.ohio-state.edu!topping From: topping@dinghy.cis.ohio-state.edu (brian e topping) Newsgroups: comp.sys.mac.programmer Subject: Re: Can anyone answer these Questions? Message-ID: <57582@tut.cis.ohio-state.edu> Date: 15 Aug 89 01:39:58 GMT References: <840@eutrc3.urc.tue.nl> <13547@polyslo.CalPoly.EDU> Reply-To: brian e toppingOrganization: Ohio State University Computer and Information Science Lines: 35 dorourke@polyslo.CalPoly.EDU (David M. O'Rourke) writes: >>3) What is the best way to update the default button's outline in a >> dialogbox? (For when a screensaver or so makes it disappear) > If you're using modal dialog I don't know of a great way to do it. Most Why not use _SFPPutFile? It allows you to specify a modal dialog filter procedure to call after doing the standard filtering. In this procedure, you simply watch for update events, and re-draw the highlighting when an update comes thru. (Be sure to double-check the grafport in the event record!) >>6) [asks about detecting bad #'s using SANE....] > Well, I know this in in-effiecient but I conver the number from str->binary > and then from binary->str, and see if the two str's are equal, if they are > then you got a #, if not you don't. Better methods anyone?? Is it possible to use TestException() (SANE reference manual, pg. 54) to check for INEXACT after a conversion using Str2Dec()? I haven't done anything yet with exceptions, so I am kind of interested in this one too. >> Any help appreciated. I want my first Mac programm to be a very good one. :) > I hope you find the answers useful. Me too. >> Ernst. > David M. O'Rourke Brian Topping