Problem resizing a stack
Peter Haworth
pete at lcsql.com
Tue Aug 28 12:39:42 EDT 2012
OK, I figured out what the problem is although I don't have a clue why it's
a problem.
I noticed that putting breakpoint commands in my preOpenCard script was not
having any effect, depending on where I put them. I assumed that was
happening because the code never reached the breakpoint for some reason
even though I wasn't getting a run time error. So I started putting a
breakpoint in beginning at the first line of the script and moving down a
few lines each time until the breakpoint failed to trigger.
That revealed that the line of code that appears to be a problem is
set the liveresizing of stack "xyz" to true
If I comment out that line of code, the stack works correctly as a plugin.
Put it back in and it fails again.
I'm happy I found the problem and in fact I don't think I need to set
liveresizing every time the stack runs; I'm not setting it to false
anywhere so I assume it would retain its true setting across runs.
But I can't help but wonder why that statement would cause a problem in a
plugin but not in a regular stack, and perhaps even more worrying, why no
runtime error was reported.
Pete
lcSQL Software <http://www.lcsql.com>
On Mon, Aug 27, 2012 at 7:06 PM, J. Landman Gay <jacque at hyperactivesw.com>wrote:
> On 8/27/12 6:55 PM, Peter Haworth wrote:
>
> My stack resizes correctly if I send a message to the handler that does
>> the
>> resizing from the message box after the stack is displayed but the same
>> handler does nothing when executed in preOpencard, even when the code is
>> to
>> send the message in zero milliseconds.
>>
>
>
> How are you referring to the stack in your scripts, and what mode is the
> plugin opened in? If your scripts use "this stack" and the plugin is not a
> toplevel stack, then "this stack" may not refer to yours.
>
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
>
>
> ______________________________**_________________
> 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<http://lists.runrev.com/mailman/listinfo/use-livecode>
>
More information about the use-livecode
mailing list