home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!centerline!noc.near.net!hri.com!ukma!darwin.sura.net!mips!swrinde!cs.utexas.edu!hellgate.utah.edu!lanl!davids
- From: davids@gardener.lanl.gov (David Simmons)
- Newsgroups: comp.sys.mac.hypercard
- Subject: Re: XCMD for Hotwords???
- Message-ID: <1992Jul31.151412.28711@newshost.lanl.gov>
- Date: 31 Jul 92 15:14:12 GMT
- References: <1992Jul30.215917.505@ucselx.sdsu.edu>
- Sender: news@newshost.lanl.gov
- Organization: Los Alamos National Laboratory
- Lines: 43
- Originator: davids@feynman.lanl.gov
-
-
- In article <1992Jul30.215917.505@ucselx.sdsu.edu>, babb@ucselx.sdsu.edu (babb j) writes:
- |> Is there a XCMD (or a good script trick) for defining a certain chunk
- |> of string as a hotword, and then performing some action when that chunk is
- |> clicked on? IOW, I want to be able to define hotwords much as ToolBook
- |> lets me define them.
- |> Thanx. Jeff.
- |>
- |> --
- |> Jeff Babb - Programmer/Technical Support - San Diego State University
- |> Language Acquisition Resource Center (L.A.R.C.) (619)594-4475
- |> babb@ucsvax.sdsu.edu
- |> .."now go away or I shall taunt you a second time" M.P.& T.H.G.
-
- In HC 2.x, this is easy.
-
- on foo
- if the clicktext is <some word> then
- doYOurThing
- else
- doSomethingElse
- end if
- pass foo
- end foo
-
- If you want a long string (more than 1 word) then simply choose the
- string, set the text style to "group" and when any word in that
- group is clicked, the clickText will contain the whole group. Instant
- HyperText (sort of...)
-
- Isn't 2.x nifty?!
- --
-
- David G. Simmons "There's no problem so awful that you can't
- davids@lanl.gov add some guilt to it and make it even worse!"
- -Calvin
- If I said it, LANL didn't...
-
- --
-
- David G. Simmons "There's no problem so awful that you can't
- davids@lanl.gov add some guilt to it and make it even worse!"
- -Calvin
-