Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!uunet!ns-mx!ccad.uiowa.edu!emcguire From: emcguire@ccad.uiowa.edu (Ed McGuire) Newsgroups: comp.sys.mac.hypercard Subject: self-knowing scripts possible? Keywords: script identity Message-ID: <1991Jan18.164956.22659@ccad.uiowa.edu> Date: 18 Jan 91 16:49:56 GMT Organization: Sequential Stream_Of_Consciousness Lines: 17 The user interface for a card I'm writing dynamically arranges various buttons on the card. Thus, a button may be anywhere on the card when it is pressed. A button unhides an associated field. I want the field to appear below the button. That's the part that has me stumped. If the button script could learn the identity of the button that has it, this would be easy. I could then get the position of the button. I could even write the code for displaying the field in the card instead of duplicating it in each button, thus saving a lot of code duplication. Is there some means for a script to learn the identify of its holder button, field, card, whatever? Is there another approach I have not considered? I'd be grateful for either HC1 or HC2 ideas. -- peace. -- Ed "Over here, Bones! This man's dying!" "Damn it, Jim! I'm a doctor, not a . . . What did you say?"