It’s my understanding that I am unable to reference objects on a card of a stack in a preOpenStack handler. Referencing an object in the stack opens the stack triggering a race condition which continually triggers preOpenStack. That is from memory though.
Bob S On Feb 4, 2021, at 2:50 PM, Tore Nilsen via use-livecode <use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com>> wrote: Performing the clean up in preOpenStack makes it happen before the stack is visible, at least according to the dictionary. "Unlike openStack <>, preOpenStack handlers <> are executed <> before the stack window <> appears. Because of this, the preOpenStack handler <> is a good place to put code that adjusts the size, position, and appearance of objects <>; the changes are made before the stack <> appears." My experience is that this is true. Tore _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode