Disabling or closing stacks..

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
tasdvl9
Posts: 94
Joined: Fri Dec 06, 2013 3:55 am

Disabling or closing stacks..

Post by tasdvl9 »

Hello,

I'm implementing a timer which will increment when my application is inactive. If the mouse is not being moved or if the app is not processing any data
the user will need to log back in.

Is there a way to check which stacks are open and either close them or disable them before I have the user log back in?
Once the user logs back in those stacks would become active again.

Thanks!
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Disabling or closing stacks..

Post by Klaus »

Hi tasdvl9,

not sure if you can disable a STACK, but you can get a list of all open stacks with:
...
put the openstacks into tStackList
...
Then do a repeat loop through this list and just close the stacks.


Best

Klaus
tasdvl9
Posts: 94
Joined: Fri Dec 06, 2013 3:55 am

Re: Disabling or closing stacks..

Post by tasdvl9 »

Thanks for the fast response, Klaus!

That'll work :)
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10507
Joined: Wed May 06, 2009 2:28 pm

Re: Disabling or closing stacks..

Post by dunbarx »

From the list Klaus indicated, you can also just "hide" and "show" them.

Craig Newman
Post Reply