Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!amdahl!nsc!voder!apple!keith From: keith@apple.UUCP (Keith Rollin) Newsgroups: comp.sys.mac Subject: Re: hypertext vs. hypercards Message-ID: <6421@apple.UUCP> Date: Tue, 6-Oct-87 00:08:32 EDT Article-I.D.: apple.6421 Posted: Tue Oct 6 00:08:32 1987 Date-Received: Fri, 9-Oct-87 04:47:36 EDT References: <689@ufcsg.cis.ufl.EDU> Reply-To: keith@apple.UUCP (Keith Rollin) Organization: Apple Computer Inc., Cupertino, USA Lines: 52 Keywords: hypertext hypercards In article <689@ufcsg.cis.ufl.EDU> mfi@ufcsg.cis.ufl.EDU (Mark Interrante) writes: >Does anyone know if hypercards allows a user to associate a button with a >particular word in a text field? This is a generic operation in most >hypertext systems and would be crippling to hypercards if such a facility >was not readily available. > >I seems that Apple has underpowered the text facilities in favor of supporting >extensive draw utilities. has anyone else found this hampering? There are 2 methods suggested in the 1st and only issue of Windoid, Apple's Hypercard User Group's informal publication (it was posted here a couple of weeks ago). Method #1: Place a tansparent button over the word in question, or an asterisk button after it. This has the advantage of not being ambiguous, but it is not flexible (i.e. the button doesn't move with the text, as in a scrolling field). Method #2: Place this script within your field handler: on MouseDown Set locktext of me to false click at the clickloc click at the clickloc if the selection is "Apple" then answer "What kind of Apple" with "Macintosh" or "Apple II" else put "I don't know that word" into msg end if set locktext of me to true end MouseDown Of course, the disadvantages of this method are paramount, also. If you have a locked scrolling field, you may be able to do something with double-clicking on the word within the script (like above) and then finding its offset into the field. If it is in the right position, then do what you need. It says in the introduction of Danny Goodman's book that Bill Atkinson is dedicated to the evolution of HyperCard for the next several years. If this is the case, then be sure to make your request enhancements known. -- Keith Rollin Sales Technical Support Apple Computer Stupid Disclaimer: I read this board for fun, not profit Stupid Quote: If god had meant man to fly, he would have given him plane tickets