want to have a stack at the foreground :)

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Tomka
Posts: 59
Joined: Mon Apr 18, 2011 7:30 pm

want to have a stack at the foreground :)

Post by Tomka » Wed May 11, 2011 1:59 pm

Hi,

got a new question where I cant find any tips in the dictonary.

Description: Theres a mainstack named "Fullscreen_fake" which contains 2 buttons:

Script of the first button "Fullscreen":

Code: Select all

on mouseUp
   open the stack "Hintergrund" 
   set the fullscreen of stack "Hintergrund" to true
   //set the decorations of this stack to empty
end mouseUp
Script of the second button "windowmode":

Code: Select all

on mouseUp
   set the decorations of this stack to "title,menu,minimize,maximize,close"
   set the fullscreen of stack "Hintergrund" to false
   close the stack "Hintergrund"
end mouseUp
The stack "Hintergrund" is a substack with a different color than the mainstack. If I push the button "fullscreen", the substack opens and is set to fullscreen... the mainstack stays in the foreground.

BUT if I delete in the first button-script "//" at the last line the mainstack wont stay in the foreground. It doesnt care which line the command "set the decorations of this stack to empty" contains. I want the mainstack without any decorations infront of the screen above the fullsized substack "Hintergrund". I hope for any ideas - would be greatful :)

Thanks alot
Thomas

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

Re: want to have a stack at the foreground :)

Post by Klaus » Wed May 11, 2011 2:04 pm

Hi Thomas,

you could:
1. make the mainstack a "palette" window, this way it will always "on top" of the substack!
2. add a:
...
go stack "vordergrund"
...
after opening the "hintergrund" stack to make this stack the "topstack" again.
Know what I mean?

But clicking anywhere in stack "hintergrund" will make THAT again the topstack!
So maybe "the backdrop" is what you might want to use? Just guessing...


Best

Klaus

Tomka
Posts: 59
Joined: Mon Apr 18, 2011 7:30 pm

Re: want to have a stack at the foreground :)

Post by Tomka » Wed May 11, 2011 2:15 pm

Hey Klaus,

i tried this with a openCard/-stack-Handler before (go stack "Fullscreen_fake") but it doesnt work. But I think the palette-mode is what I was looking for... the mainstack stays in the foreground - works fine...

hope I can change the stackmode via script... but I think so :)

thanks alot again Klaus

Tomka
Posts: 59
Joined: Mon Apr 18, 2011 7:30 pm

Re: want to have a stack at the foreground :)

Post by Tomka » Wed May 11, 2011 2:20 pm

Hmmmm, if you solve a problem you got the next :D ...
Value:
The mode of a stack is an integer between zero and 14.

This property is read-only and cannot be set.

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

Re: want to have a stack at the foreground :)

Post by Klaus » Wed May 11, 2011 2:25 pm

Hi Thomas,

you do not want to change the "stackmode" (check the dictionary why not :wink: ) but "the style"!
Or just use the inspector for that stack.
...
set the style of stack "xyz" to "palette"
...

Best

Klaus

Tomka
Posts: 59
Joined: Mon Apr 18, 2011 7:30 pm

Re: want to have a stack at the foreground :)

Post by Tomka » Wed May 11, 2011 2:26 pm

ups, ok my mistake... i´m confused a bit by the dictionary and the sun :D

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

Re: want to have a stack at the foreground :)

Post by Klaus » Wed May 11, 2011 2:28 pm

The sun...
Ja, nee, is klar :D

Tomka
Posts: 59
Joined: Mon Apr 18, 2011 7:30 pm

Re: want to have a stack at the foreground :)

Post by Tomka » Wed May 11, 2011 2:54 pm

Hehe ja :D ... hier is welche

Post Reply