Path: utzoo!attcan!uunet!mcvax!hp4nl!uva!borton From: borton@uva.UUCP (Chris Borton) Newsgroups: comp.sys.mac.hypercard Subject: Re: Getting location of characters in a field Message-ID: <525@uva.UUCP> Date: 22 Aug 88 15:07:18 GMT References: <589@oops.cme-durer.ARPA> Reply-To: borton@uva.UUCP (Chris Borton) Organization: Faculteit Wiskunde & Informatica, Universiteit van Amsterdam Lines: 22 In article <589@oops.cme-durer.ARPA> ressler@cme-durer.ARPA (weirdo) writes: >Is it possible to make a button travel along with the text, in a field. >i.e. to create an anchored button which moves say on top of an asterisk >which indicates a link to another card. I believe what you're looking for are 'sticky buttons', the promised future to true HyperMedia. The best way I've found yet to implement this was without buttons at all. I based my work on the scrips in the HyperDeveloper 1.1 stack. The basic idea is to have the mouseUp handler in the background check if there is a selection. If so, then check for the key--an '*' after the word in your case, bullets surrounding the word in mine. If found, go to card named theSelection. It sounds a bit sloppy and slow, but I was pleasantly surprised how well it worked, even on my SE. -cbb -- Chris Borton borton%uva@mcvax.{nl,bitnet,uucp} (oops, that's rather flakey right now: use borton%uva@hasara5.bitnet) Rotary Scholar, University of Amsterdam CS