Switching between subStacks

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Switching between subStacks

Post by Klaus » Sat Feb 15, 2014 5:54 pm

Hi Kenny,

I just added a comment about this fact to the report!


Best

Klaus

KennyR
Posts: 256
Joined: Thu Jan 19, 2012 4:25 am

Re: Switching between subStacks

Post by KennyR » Sat Feb 15, 2014 6:01 pm

LOL that is correct!

KennyR
Posts: 256
Joined: Thu Jan 19, 2012 4:25 am

Re: Switching between subStacks

Post by KennyR » Mon Feb 17, 2014 7:22 pm

Klaus....sorry to keep this thread alive and kicking but I have something strange going on here....Iv'e noticed navigating between stacks using no visual effects works but has some unexpected things happening when you have code in the preOpenCard script. The first time you navigate to the sub stack the preOpenCard handlers work well but when you navigate to the master stack and then back to the sub stack the handlers in the card script are ignored. I suppose the card is only being hidden and shown when called...I am not familiar with how this all works on the back end, but I assumed when leaving a card and going to the next stack that the card "closed" so that if you had a preOpenCard handler in the script it would run it again when the card was re-opened....

Update: BUG confirmed and they are working on a fix....WHOHOOO!

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Switching between subStacks

Post by jacque » Tue Feb 18, 2014 10:36 pm

Cool. I had this problem also in a project but I didn't think it was a bug, I thought it was how messaging worked. My stacks had destroystack set to false, so when they closed they were actually still in memory. I didn't get any preOpenCard or preOpenStack messages when I re-opened them, but I thought it was because they were technically still open, even though they weren't in the message path. Now that I think about it, it is a bug and I'm glad they are fixing it. It does mean my workaround will break though, I'll have to fix that.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply