Page 1 of 1

problems with mainstack staying on top and won't quit

Posted: Mon Mar 23, 2015 5:40 pm
by tamazaraptor
Hi there,
I'm not quite sure how to explain the issue I'm having. Basically, the problem is that after implementing some commands (see below) my mainstack keeps floating over the top of the tools palette, message box, menu bar, script editor, etc (anything that's not the mainstack itself, including other applications like Safari). Then, it will also refuse to quit and I have to either Force Quit or use Task Manager to close LiveCode (on Mac and Windows, respectively).

My stack is essentially a game, so I have a set-up page for me to use and then on the next page (where the player starts the game) I wanted the backdrop to be black and all menus, taskbars, palettes etc to be made invisible. I also didn't want people to be able to click on the desktop. So I put in the following in a button:

Code: Select all

 
set the decorations of this stack to empty
   hide taskbar
   set the backdrop to "black"
   hide menubar
Then, at the end of the game, I put in the following (also in a button) so that it would be 'reset' to normal.

Code: Select all

     set the decorations of this stack to "title, minimize,maximize,close,menu,system"
      show taskbar
      set the backdrop to none
      show menubar
After putting these in, the problems I described above started (i.e. the mainstack is staying on top and it won't quit normally). Can anyone give me any ideas why this is happening? I am running this on both Windows and Mac, and I've got 7.0.2-rc-2.
Any help would be greatly appreciated! Thanks!
Tamara

Re: problems with mainstack staying on top and won't quit

Posted: Mon Mar 23, 2015 5:53 pm
by Klaus
Hi Tamara,

leave out the SYSTEM decoration and that should fix it! :D
Check "systemWindow" in the dictionary to see why!
...
## set the decorations of this stack to "title, minimize,maximize,close,menu,system"
set the decorations of this stack to "title, minimize,maximize,close,menu"
...

Best

Klaus

Re: problems with mainstack staying on top and won't quit

Posted: Mon Mar 23, 2015 9:26 pm
by tamazaraptor
Dear Klaus,
You're awesome! Thanks :)
Cheers,
Tamara.