If I understand correctly, what is happening is that the preopenstack message 
is getting passed through the "MyOtherStack" script and ends up going to the 
main stack script. One solution is to put an empty "on preopenstack" handler in 
the "MyOtherStack" script, to the message won't get to the mainstack script.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig

On Sep 6, 2014, at 9:12 AM, Terence Heaford wrote:

> Thanks for your response, I am aware of this solution but…
> 
> Is what I described correct or a bug?
> 
> 
> Thanks
> 
> Terry
> 
> On 06 Sep 2014, at 12:32, j...@souslelogo.com wrote:
> 
>> Hello,
>> 
>> When using preopenstack or openstack, I always check the name
>> of the stack, no matter which version of LC.
>> 
>> on openStack
>>  if short name of this stack contains "my main stack" then
>>     -- do something
>>  end if
>> end openStack
>> 
>> This way you're 100% safe.
>> 
>> Best
>> jbv
>> 
>> 
>>> I have a stack(main stack) which in the stack script contains a
>>> preopenstack handler that I use to set the size of the window before it
>>> shows.
>>> 
>>> One of the datagrids on the card of this stack executes:
>>> 
>>> on mouseDoubleUp theMouseButton
>>>  open stack “MyOtherStack" as sheet
>>> end mouseDoubleUp
>>> 
>>> Since I have started using 6.7 RC1 on my Mac when open stack
>>> “MyOtherStack" as sheet is executed the sheet window is resized to that in
>>> the preopenstack handler of the main stack.
>>> 
>>> on preOpenStack
>>>  set the width of this stack" to 1080
>>>  set the height of this stack  to 700
>>> end preOpenStack
>>> 
>>> Is this a bug?
>>> 
>>> Does the preopenstack handler in the script of the main stack also get
>>> applied to the sheet window?
>>> 
>>> It didn’t in earlier releases (DP’s).
>>> 
>>> All the best
>>> 
>>> Terry
>>> _______________________________________________
>>> 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
>>> 
>> 
>> 
>> _______________________________________________
>> 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
> 
> _______________________________________________
> 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


_______________________________________________
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

Reply via email to