home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / hypercar / 4224 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.3 KB  |  36 lines

  1. Newsgroups: comp.sys.mac.hypercard
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!apple!mumbo.apple.com!gallant.apple.com!kip2-56.apple.com!user
  3. From: jpugh@apple.com (Jon Pugh)
  4. Subject: Re: Creating Card Buttons automatically
  5. Sender: news@gallant.apple.com
  6. Message-ID: <jpugh-171192213611@kip2-56.apple.com>
  7. Date: Wed, 18 Nov 1992 05:39:44 GMT
  8. References: <1992Nov17.203453.21312@fs7.ece.cmu.edu>
  9. Organization: Apple Computer, Inc.
  10. Followup-To: comp.sys.mac.hypercard
  11. Lines: 23
  12.  
  13. In article <1992Nov17.203453.21312@fs7.ece.cmu.edu>, herman@amc.ece.cmu.edu
  14. (Herman Schmit) wrote:
  15. > Is there any way to create new buttons automatically in the card
  16. > domain?  What message do you send to create a new button (if there is
  17. > one)?
  18.  
  19. doMenu "New Button"
  20. get number of btns
  21. set name of btn it to "Boogers"
  22. set style of btn it to transparent
  23. repeat until the mouse is down
  24.   set loc of btn it to the mouseLoc
  25. end repeat
  26. choose browse tool
  27.  
  28. Fun stuff, huh?  There's all kinds of cool stuff you can do with this. 
  29. Moving buttons, aligned buttons, stacked buttons, disappearing buttons, the
  30. list is endless.  I often build index cards with buttons for all the cards
  31. under script control.  The trick is to evenly space the buttons in some
  32. number of columns and rows.  You can waste hours this way!
  33.  
  34. Jon
  35.