Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!baum From: baum@Apple.COM (Allen J. Baum) Newsgroups: comp.sys.mac.hypercard Subject: Re: using fields with scroll bars Message-ID: <32571@apple.Apple.COM> Date: 21 Jun 89 17:42:15 GMT References: <4161@emory.mathcs.emory.edu> <7219@ecsvax.UUCP> Reply-To: baum@apple.UUCP (Allen Baum) Organization: Apple Computer, Inc. Lines: 25 [] >In article <4161@emory.mathcs.emory.edu> riddle@mathcs.emory.edu (Larry Riddle) writes: >In addition, I have a button that is moved over the line where the >click was made and then the button's hilite property is set to true. >All this works fine. However, my problem is when the user then scrolls >to see other lines in the field. As soon as the user starts to scroll, >I would like my button to become unhilited so as not to distract from >the scrolling field and ruin the visual effect. I suspect I could do > Oops, I solved the wrong problem in the last message. The problem is not highlighting the field, but un-highlighting when you scroll. I would put a button over the scrollbar. The button should be hidden, until the field script is executed,. i.e., inside the field script should be: set visible of button "scrollbut" to true Then, the button script should deselect the line in the field, and hide itself: on mousedown --note, this is a mousedown, not mouseup handler select char 2 to 1 of cd field "scrollfield" --unselect line set visible of me to false --hide me end mousedown -- baum@apple.com (408)974-3385 {decwrl,hplabs}!amdahl!apple!baum