Substacks run OpenStack from main stack
Posted: Thu Feb 14, 2013 8:59 pm
I have a problem that just started today. It was happening before I upgraded from 5.5.3 and is still happening after the upgrade to 5.5.4. This is on a Mac. My program has a main stack and about 10 substacks a few of which are opened modally but for the most part the substacks perform the various functions of my program. My problem is that when I want to open one of the substacks the preOpenStack is executed as expected and then for most of the substacks (but not all) the openStack code for the main stack is executed next. This causes a problem because the objects on the substacks differ from those on the main stack.
The main stack and all the subStacks have this same code:
If I put a break point at the step 'end PreOpenStack' on a substack that displays this problem, the 'step' to the next executable command is to the first step of the openStack event of the main stack rather than to the openStack of the substack as it should. A quick check of the two substacks that open without a problem shows that neither one has an OpenCard script.
Can you offer any suggestions of an approach to correct this problem?
Thanks,
Larry
The main stack and all the subStacks have this same code:
Code: Select all
on preOpenStack
if the platform is "MacOS" then
set the textFont of this stack to "Lucida Grande"
else if the platform is "Win32" then
set the textFont of this stack to "Tahoma"
else // linux
set the textFont of this stack to "Arial"
end if
set the textsize of this stack to 12
end preOpenStack
Can you offer any suggestions of an approach to correct this problem?
Thanks,
Larry