home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!apple!mumbo.apple.com!gallant.apple.com!kip2-56.apple.com!user
- From: jpugh@apple.com (Jon Pugh)
- Subject: Re: Creating Card Buttons automatically
- Sender: news@gallant.apple.com
- Message-ID: <jpugh-171192213611@kip2-56.apple.com>
- Date: Wed, 18 Nov 1992 05:39:44 GMT
- References: <1992Nov17.203453.21312@fs7.ece.cmu.edu>
- Organization: Apple Computer, Inc.
- Followup-To: comp.sys.mac.hypercard
- Lines: 23
-
- In article <1992Nov17.203453.21312@fs7.ece.cmu.edu>, herman@amc.ece.cmu.edu
- (Herman Schmit) wrote:
- >
- > Is there any way to create new buttons automatically in the card
- > domain? What message do you send to create a new button (if there is
- > one)?
-
- doMenu "New Button"
- get number of btns
- set name of btn it to "Boogers"
- set style of btn it to transparent
- repeat until the mouse is down
- set loc of btn it to the mouseLoc
- end repeat
- choose browse tool
-
- Fun stuff, huh? There's all kinds of cool stuff you can do with this.
- Moving buttons, aligned buttons, stacked buttons, disappearing buttons, the
- list is endless. I often build index cards with buttons for all the cards
- under script control. The trick is to evenly space the buttons in some
- number of columns and rows. You can waste hours this way!
-
- Jon
-