🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #19115

Re: Button hilighting in HyperTalk

#19115
From: Ron Beloin
Date: Tue, 15 Sep 1987 17:10
23 lines
1913 bytes
In article <1748@watcgl.waterloo.edu> kdmoen@watcgl.UUCP (Doug Moen) writes:

>Here's my problem.  I prefer not to edit the script of every single
>button in my database to add this code.  I have tried putting the code
>into the stack script, where it will be inherited by every button in
>the stack.  This works, but unfortunately, it also gets inherited by fields,
>which is not what I want.  Any suggestions?

You can write a script that will poke the script you want into the buttons.
Put the desired script into a field. Then use 
  get the script of button i
  put newscript after it -- newscript contains the additional code
  set script of button i to it
with the appropriate loops to get you through cards and buttons
You can also be more selective with
  if the name of button i contains the chars "whatever" then set script ...
so you can decide if the button will have the property when you name it.

I haven't tried this, but I think it will work.
--ron.
 Ron Beloin, Ecosystems Research Center, Corson Hall, Cornell, Ithaca,NY 14853
 >> opinions << BITNET:BELOIN@CRNLTHRY; INTERNET:beloin@tcgould.tn.cornell.edu
 >> are mine << UUCP:{cmcl2,shasta,uw-beaver,rochester}!cornell!tcgould!beloin
Technical Details
Message-ID: <2343@batcomputer.tn.cornell.edu>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bbn!uwmcsd1!leah!itsgw!batcomputer!beloin
References: <1748@watcgl.waterloo.edu>

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!bbn!uwmcsd1!leah!itsgw!batcomputer!beloin
From: beloin@batcomputer.tn.cornell.edu (Ron Beloin)
Newsgroups: comp.sys.mac
Subject: Re: Button hilighting in HyperTalk
Message-ID: <2343@batcomputer.tn.cornell.edu>
Date: Tue, 15-Sep-87 13:10:42 EDT
Article-I.D.: batcompu.2343
Posted: Tue Sep 15 13:10:42 1987
Date-Received: Thu, 17-Sep-87 04:22:52 EDT
References: <1748@watcgl.waterloo.edu>
Reply-To: beloin@tcgould.tn.cornell.edu (Ron Beloin)
Organization: Cornell Theory Center, Cornell University, Ithaca NY
Lines: 23
Summary: scripts can write scripts can write scripts can write...