Close stack will not fire "hide group"
Peter Bogdanoff
bogdanoff at me.com
Sun Oct 23 01:37:40 EDT 2016
It could be that the stack is closed by the time that the closeStack message arrives.
Maybe try:
on closeStackRequest
hide group “HomeScreensBottomNav"
pass closeStackRequest
end closeStackRequest
Peter
On Oct 22, 2016, at 7:43 PM, Sannyasin Brahmanathaswami <brahma at hindu.org> wrote:
> I have this in a stack script
>
> on closeStack
> hide group "HomeScreensBottomNav"
> end closeStack
>
> I can test from msg box: group is hidden
>
> if I restart the stack, group is still hidden: ergo I have no hidden initialization methods that are turn on the vis for this group.
>
> in one button/svg widget in this group there is handler
>
> on mouseUp
> close this stack
> loadModule "home"
> end mouseup
>
> theoretically this should fire the close stack handler
>
> but it doesn't, when I reopen the stack the group is still visible.
>
> If I test with this:
>
> on closeStack
> hide group "HomeScreensBottomNav"
> put "hello"
>
> end closeStack
>
>
> If I add this, apply and save the stack, click the button on the bar the stack is close msg box appears "hello"
>
> but group is not hidden.
>
> Any clues? it is almost as if the hide command is being intercepted by something, prop of the objects is being intercepted, but I have no front scripts that do that.
>
> Svasti Astu, Be Well
> Brahmanathaswami
> www.himalayanacademy.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
More information about the use-livecode
mailing list