getting cards open to use formatteHeight

dunbarx at aol.com dunbarx at aol.com
Fri Jul 25 19:16:58 EDT 2014


Richard,


Isn't this what your code says? You push your main card, go to the source card, and then go back to main, no?


Craig



-----Original Message-----
From: Dr. Hawkins <dochawk at gmail.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Fri, Jul 25, 2014 5:13 pm
Subject: getting cards open to use formatteHeight


I need to use the formattedHeight of data for calculations of slzes as I
lay out forms

I have the sequence of

   lock messages
   push card
   open invisible (long id of source card here)
   pop card
   unlock messages

to insure that the necessary card is open.

This results, though, in my main stack popping forward.

There is a routine in the main stack that activates after a couple of
seconds of no typing to synchronize (in sends itself a message in 100 ms or
so to rerun).

It appears that the mainstack has become the first line of the openStacks
before hitting that "lockMessages" above (which is in a handler in my
output stack).


And, of course, this is one of those ones that doesn't manifest the same
way when single stepping (because the code window becomes the front stack?)

-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list