Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!amcad!stech!sysop From: sysop@stech.UUCP (Jan Harrington) Newsgroups: comp.sys.mac.hypercard Subject: Re: mouseUp events in scroll bars Message-ID: <434@stech.UUCP> Date: 5 Feb 88 13:30:59 GMT References: <911@ur-tut.UUCP> Organization: Scholastech, Inc., Waltham, Mass. Lines: 52 in article <911@ur-tut.UUCP>, aisl@ur-tut.UUCP (Larry Landry) says: > > In article <422@stech.UUCP> sysop@stech.UUCP (Jan Harrington) writes: >> >>. . . . . . Assuming that >>I've locked the text in each field, Hypercard doesn't detect the movement >>of the scroll bar as a mouseUp event. To trigger the script, the user has >>to click the pointer in the field that was scrolled (i.e., not in the scroll >>bar area). >> > > I do the same thing in one of my stacks. I have an idle handler in the > card (could be anywhere above this) script. It says: > > on idle > set the scroll of field n to the scroll of field n2 > end idle > > Of course, you will probably want to set more than one additional field, but > the idle message is where you should handle it. > This will only work if the scroll should be pegged to one certain field, say the leftmost one in the set. However, I want to let people scroll any of the fields. Whenever _any_ of the scroll bars are moved, I want to adjust all of the fields to the last one that was moved, which, of course, is what is creating the problem. I did switch the handler to on mouseWithin, which is a bit better. As long as the mouse remains within the field that was scrolled, all the others will adjust. Unfortunately, if the user is quick on the mouse, it's possible that the mouse pointer will have left the field before the script can click in (at least, I can get the mouse out fast enough to make that happen). So, the mouseWithin isn't an ideal solution. The best answer I got to this question was someone who had written scripts to put his own scroll bars over the field's scroll bars. He offered to mail me the scripts, but my mailer couldn't construct a mail path back to him, and I lost contact ... Arg! Jan Harrington, sysop Scholastech Telecommunications ihnp4!husc6!amcad!stech!sysop or allegra!stech!sysop ******************************************************************************** Miscellaneous profundity: "No matter where you go, there you are." Buckaroo Banzai ********************************************************************************