🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #19882

Hypercard: Clicking on a text word

#19882
From: spohrer-james
Date: Mon, 05 Oct 1987 17:51
37 lines
1683 bytes
From: James Spohrer <spohrer-james>

Problem: You want to click on a word in a text field and have
that event send you to a new card.

Solution1: (Messy) - Write a line lexer that finds the rectangle
for each word in the line until it finds the rectangle that was
clicked in.

Solution2: (Easier, but...) - In developing a mini-code browser,
the following was used satisfactorily: Select the word that you
wanted to click on by dragging across it in the text field.
Define a button called GOTO above the text-field. Click the GOTO
button, at it takes you to the documentation for that word, if
you have a script associated with the button like the following:

on mouseUp
 find the Selection in field "Documentation-for-Word"
end mouseUp

In your documentation cards, give them each a name field called
Documentation-for-Word, and put the word's name in that text
field.

So instead of clicking on the word, you have to Select the word
by dragging, and then click the GOTO button. 

Thanks to Stan Letovsky and Charlie Martin for parts of the
"solutions".

P.S. I would like to hear alternative solutions.

-Jim Spohrer
SPOHRER@YALE
(203) 432-1227
-------
-------
Technical Details
Message-ID: <17189@yale-celray.yale.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!cmcl2!yale!spohrer-james

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!cmcl2!yale!spohrer-james
From: spohrer-james@yale.UUCP
Newsgroups: comp.sys.mac
Subject: Hypercard: Clicking on a text word
Message-ID: <17189@yale-celray.yale.UUCP>
Date: Mon, 5-Oct-87 13:51:48 EDT
Article-I.D.: yale-cel.17189
Posted: Mon Oct  5 13:51:48 1987
Date-Received: Fri, 9-Oct-87 07:07:07 EDT
Sender: daemon@yale.UUCP
Organization: Yale University, New Haven, CT
Lines: 37