Path: utzoo!utgpu!attcan!uunet!seismo!sundc!pitstop!sun!amdcad!ames!pasteur!buddy.Berkeley.EDU!c60b-bh
From: c60b-bh@buddy.Berkeley.EDU (Robert Menke)
Newsgroups: comp.sys.mac.hypercard
Subject: Re: Fast way to create a button?
Message-ID: <5907@pasteur.Berkeley.EDU>
Date: 23 Sep 88 06:56:23 GMT
References: <3060@pt.cs.cmu.edu> <1080@marlin.NOSC.MIL>
Sender: news@pasteur.Berkeley.EDU
Reply-To: c60b-bh@buddy.Berkeley.EDU.UUCP (Robert Menke)
Distribution: na
Organization: University of California, Berkeley
Lines: 37

In article <1080@marlin.NOSC.MIL> bwalker@marlin.nosc.mil.UUCP (Beth Walker) writes:

>Now, if anyone knows of an easier way to do this....


How about using the method that is in your Stack Ideas stack on the card
labeled (I believe) Image Index?

The idea is to use standard check boxes and a hidden field to store the
status of each of the check buttons.

Then the background script would read something like:

on openCard
  repeat with i =  to 
    set the hilite of bkgnd button i to (line i of field "Stats" = "true")
  end repeat
end openCard

on closeCard
  repeat with i =  to 
    put the hilite of bkgnd button i into line i of field "Stats"
  end repeat
end closeCard

Only problem is that this is SLOOOOOW (especially if you have 40 buttons
per card like myself). Locking the screen helps.

Perhaps an XCMD could speed things up...

						--Rob

	REAL Mac programmers can read PICT resources without IM V.
How Wabewalker became one with the net:  |
    >LOGIN                               | Robert Menke
    >TYPE "RN COMP.SYS.MAC"              |   c60b-bh@buddy.berkeley.EDU
    >READ ARTICLES                       |