Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!accuvax.nwu.edu!aristotle!neves From: neves@aristotle.ils.nwu.edu (David Neves) Newsgroups: comp.sys.mac.hypercard Subject: Re: Making areas of field text clickable? Message-ID: <3858@accuvax.nwu.edu> Date: 14 Feb 90 20:17:39 GMT References: <3811@accuvax.nwu.edu> <13831@phoenix.Princeton.EDU> Sender: news@accuvax.nwu.edu Reply-To: neves@aristotle (David Neves) Organization: The Institute for the Learning Sciences, Northwestern University Lines: 17 In article <13831@phoenix.Princeton.EDU> bskendig@phoenix.Princeton.EDU (Brian Kendig) writes: > >That's the way, and although it's complicated, you don't need to >resort to an XCMD to deal with it. Put a mouseUp handler into the >field script. When activated, it should unlock the field, click twice >at the clickLoc, read the selectedText and/or the selectedChunk, lock >the field again, then process the read information. You needn't worry >at all about the position of carriage returns in the field's text, nor >of the text's size and attributes. Yes! I had forgotten that selectedchunk will return the loction of the click. Since I want phrases to be clickable I would have to lock the screen so that the first word selection doesn't show up. Unfortunately Supercard has another bug where the screen shows selections even when locked. Maybe its time to go to Hypercard! -Thanks again, david neves@ils.nwu.edu Institute for the Learning Sciences, 1890 Maple, Evanston Il 60201