Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!sunic!sics.se!lhe From: lhe@sics.se (Lars-Henrik Eriksson) Newsgroups: comp.sys.mac.hypercard Subject: Re: Problem running script with locked screen Keywords: screen locked bug scroll field style Message-ID: <1989Nov3.144726.2534@sics.se> Date: 3 Nov 89 14:47:26 GMT References: <1649@gmdzi.UUCP> Sender: lhe@sics.se (Lars-Henrik Eriksson) Reply-To: lhe@sics.se (Lars-Henrik Eriksson) Organization: Swedish Institute of Computer Science, Stockholm (Kista), Sweden Lines: 26 In-Reply-To: roh@gmdzi.UUCP (Peter Rohleder ) In article <1649@gmdzi.UUCP>, roh@gmdzi (Peter Rohleder ) writes: >Theat means: If the chunk of text exceeds the size of the rectangle of >the field the style should be set to scrolling - otherwise the style >of the field should be set to rectangle. > >My thought was to position the text selection behind the text, then to look >if the scroll of the field is unequal zero. If it is unequal zero, the text has >a size that makes scrolling necessary, otherwise I decrease the size of the >rectangle of the bkgnd field until the scroll is unequal zero. Then I set the >rectangle to the last value which it had before the scroll changed to non-zero. > >This script should always get executed on "openCard". > >It works fine so long as you don't decide to run it with the screen locked. > >When I lock the screen it seems that the value of the scroll doesn't get updated >correctly and HyperCard runs into a never ending loop. I would guess that some field attributes (like the scroll) are updated when the screen is updated. If the screen is never updated because it is locked, then the scroll never gets updated either. -- Lars-Henrik Eriksson Internet: lhe@sics.se Swedish Institute of Computer Science Phone (intn'l): +46 8 752 15 09 Box 1263 Telefon (nat'l): 08 - 752 15 09 S-164 28 KISTA, SWEDEN