Path: utzoo!mnetor!uunet!husc6!cmcl2!nrl-cmf!ames!claris!apple!baum From: baum@apple.UUCP (Allen J. Baum) Newsgroups: comp.sys.mac.hypercard Subject: Re: Buttons in Scrolling Fields Message-ID: <7494@apple.UUCP> Date: 24 Mar 88 20:29:39 GMT References: <46287@sun.uucp> <31927@gt-cmmsr.GATECH.EDU> Reply-To: baum@apple.UUCP (Allen Baum) Organization: Apple Computer, Inc. Lines: 19 -------- [] >In article <31927@gt-cmmsr.GATECH.EDU> nerb@gt-cmmsr.UUCP (Brennan Robison) writes: >I would like to be able to click on an item in a scrolling window to >retrieve specific information on that item. I attempted this by placing >buttons on top of each item in the window. This didn't work, however, >because when I scroll, the text moves while the button stays in place. > >Is there any way to insert the button INTO the scrolling field? The way I did something like this is to lock the field. When you click on the field, a mousedown/up script can be run that uses the clickloc, the field's rect, and the field's scroll to calculate the line in the field. Alternatively, you can unlock the field, click on the leftedge,yloc and shiftclick on rightedge,yloc to select the entire line, and then use the selection to do further processing (don't forget to relock the field). -- {decwrl,hplabs,ihnp4}!nsc!apple!baum (408)973-3385