Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!psuvax1!psuvm.bitnet!cunyvm!byuvax!taylorj From: taylorj@yvax.byu.edu Newsgroups: comp.sys.mac.hypercard Subject: re: using fields with scroll bars Message-ID: <652taylorj@yvax.byu.edu> Date: 26 Jun 89 05:25:43 GMT Lines: 16 I agree with the other guys that it would probably be more efficient to dispense with the button, but here's a quick and easy way to find out if the user has scrolled the field. When you put up the button, save the scroll state of the field in a global variable ('put the scroll of field into oldScroll'). The put a mouseWithin handler in the field that checks to see if the scroll has changed. It would look something like this: on mouseWithin global oldScroll if the scroll of me <> oldScroll then -- user has scrolled: hide button, or whatever you need to do end if end mouseWithin Jim Taylor Microcomputer Support for Curriculum Brigham Young University taylorj@byuvax.bitnet