How can I make my mainstack stay invisible?

Ken Ray kray at sonsothunder.com
Sun Aug 17 21:28:00 EDT 2003


Graham,

This may be where the IDE "thinks ahead", sometimes wrongly. If you open
the message box and type:

  hide this stack;save this stack

and hit Return, it will save in an invisible state; the next time you
try to open it, it will open invisibly.

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/ 

> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com 
> [mailto:use-revolution-admin at lists.runrev.com] On Behalf Of 
> Graham Samuel
> Sent: Sunday, August 17, 2003 6:58 PM
> To: Revolution user discussion
> Subject: How can I make my mainstack stay invisible?
> 
> 
> I've got a mainstack that the user is never supposed to see, and 
> which should not be at the front. It's just an anchor for all my 
> substacks. I find that if I make it invisible in the Stack Inspector, 
> the 'Save' option in the IDE is dimmed. If I use the Application 
> Browser to make the mainstack reappear, its visible property reverts 
> to true, and so when I save the whole file I save the mainstack in 
> the 'wrong' state. I also find that the mainstack shows up at the 
> front, even though I have scripted a 'go' to my flash screen stack 
> quite early on. This stack was previously opened invisibly, therefore 
> according to my reading of the TD, the 'go' should bring it to the 
> front. Does this work reliably?
> 
> I've tried using a PreOpenStack handler to hide the mainstack, but so 
> far this hasn't worked either (I may of course have made some kind of 
> scripting error). Maybe I should be setting the location of the stack 
> offscreen at somewhere like -10000,-10000 - but that still leaves the 
> problem of making sure that my flash screen gets the focus.
> 
> Am I just making a lot of coding mistakes, or is there a real 
> problem here?
> 
> TIA
> 
> Graham
> -- 
> -------------------------------------------------------------------
>           Graham Samuel / The Living Fossil Co. / UK & France 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com 
> http://lists.runrev.com/mailman/listinfo/use-> revolution
> 





More information about the use-livecode mailing list