Path: utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!ucsdhub!sdcsvax!ucsd!ames!oliveb!apple!apple.com!blob From: blob@apple.com (Brian Bechtel) Newsgroups: comp.sys.mac.hypercard Subject: Create buttons with YOUR defaults Message-ID: <900@internal.Apple.COM> Date: 10 Mar 89 15:46:16 GMT Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 34 I'm probably not the only person to ever come upon this, but for you novice Hypertalkers out there: In general, I like my buttons to conform to the user interface guidelines. This means highlight when selected; the autohilite property should always be turned on. What a royal pain, changing this property every time I create a new button. A few seconds with the "HyperCard Scripting Language Guide" by Addison Wesley reveals that you can put a handler in your stack (or card) that says: on newButton set the autohilite of the target to true end newButton This can actually get really complicated, such as on newButton global newButtonName -- set somewhere else if word 1 of the name of the target is "bkgnd" then exit newButton set the name of the target to newButtonName set autohilite of the target to true set style of the target to transparent set textfont of the target to "New York" set textsize of the target to 10 end newButton to get transparent buttons with autohilite and their name displayed in 10 point New York. Was I the only person who didn't realize this stuff? --Brian Bechtel blob@apple.com "My opinion, not Apple's"