Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!kth.se!draken!krona From: krona@nada.kth.se (Kjell Krona) Newsgroups: comp.sys.mac.hypercard Subject: Re: A pop-up background field ? Keywords: HyperCard, background fields Message-ID: <3221@draken.nada.kth.se> Date: 27 Mar 90 23:22:20 GMT References: <1990Mar27.173252.21738@uwasa.fi> Reply-To: krona@nada.kth.se (Kjell Krona) Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 40 > I would like to have a pop-up background field with text in it, to > be used anywhere in the stack. One solution I have been using is to store the text in a global variable, and put it into the field when needed. Of course, if the text is not removed afterwards, it will eventually be stored on all cards. This can be easily accomplished with "opencard" and "closecard" handlers. If we assume that the field pops up by special action, we might write: on openStack global theHiddenText put field "Hidden text" into theHiddenText -- We assume that the text is stored on a hidden field -- on the first card end openStack on popUp global theHiddenText show field "Hidden text" put theHidddenText into field "Hidden text" end popUp on closeCard put empty into field "Hidden text" end closeCard on openCard global theHiddenText if the visible of field "Hidden text" is true then put theHiddenText into field "Hidden Text" end if end openCard I am writing this from the heart :-), so there may be errors in the scripts. I have used such techniques sucessfully, however. Hopes this helps! Kjell Krona krona@nada.kth.se Dept. of Architecture/Dept. of Numerical Analysis and Computer Science Royal Institute of Technology, Stockhom, Sweden