Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!dsinc!netnews.upenn.edu!scrolls.wharton.upenn.edu!shull From: shull@desci.wharton.upenn.edu (Christopher E. Shull) Newsgroups: comp.sys.mac.hypercard Subject: button width = width of button text? Message-ID: <36590@netnews.upenn.edu> Date: 30 Jan 91 03:20:30 GMT Sender: news@netnews.upenn.edu Organization: Decision Sciences, Wharton School, U of Pennsylvania Lines: 28 Originator: shull@scrolls.wharton.upenn.edu Hi! I have a warning and a question: Warning: Mac IIci, 6.0.7, HyperCard 1.2.5. Script editor hangs on every "beep", ie. when you accidentally press to save instead of , "beep" means you can press the reset button now. Similarly, after the last successful "find", you "find" once more, and, again, "beep" means that you are screwed. Solution: Install 6.0.5. Whether this effects folks with IIsi's, LC's and Classics I have know idea, but the solution obviously doesn't apply. :-( Question:I want to adjust the width of a button to match the width of its text label. Short of using the average pixel width of a character in the font, preferably a fixed width one, and multiplying by the number of characters in the label, I can't think of a nice way to do this. Any ideas or suggestions? -Chris Christopher E. Shull shull@wharton.upenn.edu Decision Sciences Department shull@desci.wharton.upenn.edu The Wharton School University of Pennsylvania 3620 Locust Walk voice: 215/898-5930 Philadelphia, PA 19104-6366 fax: 215/898-3664 --------------------------------------------------------------------------- "Damn the torpedoes! Full speed ahead!" Admiral Farragut, USN, 1801-1870 ---------------------------------------------------------------------------