active stack

6 messages Options
Embed this post
Permalink
Beat Cornaz-2

active stack

Reply Threaded More More options
Print post
Permalink
I have a mainstack with several substacks. One of the substacks is a  
tiny 'Indicator' and I have 'set the systemWindow of stack  
"Indicator" to true'.
So this stack floats above everything else. I have a button to go  
from substack A to substack B. I have - go stack "B" - in the script  
of the button.
Clicking the button does make the substack "B" appear, but it has not  
become the active stack. Only if I click in the substack "B" it  
becomes the active stack (and gets the proper menu in Mac OSX).
All works fine if I close the stack "Indicator".
So, what commands do I use to make the stack appear and become the  
active stack with the indicator open?. Toplevel does close the stack  
first (i don't want that) and does not work either as I can remember.

Thanks,

Beat
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Bernard Devlin-2

Re: active stack

Reply Threaded More More options
Print post
Permalink
try

go stack "B" as toplevel

Bernard

On Wed, Jul 8, 2009 at 10:44 AM, Beat Cornaz<[hidden email]> wrote:

> I have a mainstack with several substacks. One of the substacks is a tiny
> 'Indicator' and I have 'set the systemWindow of stack "Indicator" to true'.
> So this stack floats above everything else. I have a button to go from
> substack A to substack B. I have - go stack "B" - in the script of the
> button.
> Clicking the button does make the substack "B" appear, but it has not become
> the active stack. Only if I click in the substack "B" it becomes the active
> stack (and gets the proper menu in Mac OSX).
> All works fine if I close the stack "Indicator".
> So, what commands do I use to make the stack appear and become the active
> stack with the indicator open?. Toplevel does close the stack first (i don't
> want that) and does not work either as I can remember.
>
> Thanks,
>
> Beat
> _______________________________________________
> use-revolution mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Bernard Devlin-2

Re: active stack

Reply Threaded More More options
Print post
Permalink
Sorry I didn't see that you had tried using 'toplevel'. Can you
elaborate on the relationship between stacks A, B and Indicator? Are
they all substacks of the same stack.

Bernard

On Wed, Jul 8, 2009 at 12:36 PM, Bernard Devlin<[hidden email]> wrote:

> try
>
> go stack "B" as toplevel
>
> Bernard
>
> On Wed, Jul 8, 2009 at 10:44 AM, Beat Cornaz<[hidden email]> wrote:
>> I have a mainstack with several substacks. One of the substacks is a tiny
>> 'Indicator' and I have 'set the systemWindow of stack "Indicator" to true'.
>> So this stack floats above everything else. I have a button to go from
>> substack A to substack B. I have - go stack "B" - in the script of the
>> button.
>> Clicking the button does make the substack "B" appear, but it has not become
>> the active stack. Only if I click in the substack "B" it becomes the active
>> stack (and gets the proper menu in Mac OSX).
>> All works fine if I close the stack "Indicator".
>> So, what commands do I use to make the stack appear and become the active
>> stack with the indicator open?. Toplevel does close the stack first (i don't
>> want that) and does not work either as I can remember.
>>
>> Thanks,
>>
>> Beat
>> _______________________________________________
>> use-revolution mailing list
>> [hidden email]
>> Please visit this url to subscribe, unsubscribe and manage your subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Malte Pfaff-Brill

Re: active stack

Reply Threaded More More options
Print post
Permalink
In reply to this post by Beat Cornaz-2
Have you tried setting the defaultstack after your go command? What is  
the mode of stack B?

Cheers,

Malte
_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Mark Schonewille-3

Re: active stack

Reply Threaded More More options
Print post
Permalink
In reply to this post by Beat Cornaz-2
Hi Beat,

A failsafe method is to use the target in a frontscript.

on resumeStack
   showActiveStack
   -- do something with the result if you like
   pass resumeStack
end resumeStack

on preOpenStack
   showActiveStack
   -- do something with the result if you like
   pass preOpenStack
end preOpenstack

on showActiveStack theTarget
   if theTarget is empty then put long id of the target into theTarget
   put the short name of theTarget into myStack
   -- do something with myStack for example...
   if fld "Current Stack" of stack "Tiny Window" is not myStack then
     put myStack into fld "Current Stack" of stack "Tiny Window"
   end if
   return theTarget -- might be useful
end showActiveStack

-- Optionally, use the following to display the mouseStack
on mouseMove
   put long id of the target into myTarget
   put value(word (wordOffset("stack",myTarget) + 1) of myTarget) into  
myStackPath
   put long id of stack myStackPath into myStack
   -- you might also use "the long id of the mouseStack"
   -- but I believe that may not always work
   showActiveStack myStack
   -- do something with the result if you like
   pass preOpenStack
end mouseMove

(Please mind line wraps and typos).

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
Snapper Screen Recorder 2.1 http://snapper.economy-x-talk.com

If you sent me an e-mail before 21 June and haven't got a reply yet,  
please send me a reminder.

P.S. There is still the Dutch forum at <http://www.runrev.info/rrforum/>




On 8 jul 2009, at 11:44, Beat Cornaz wrote:

> I have a mainstack with several substacks. One of the substacks is a  
> tiny 'Indicator' and I have 'set the systemWindow of stack  
> "Indicator" to true'.
> So this stack floats above everything else. I have a button to go  
> from substack A to substack B. I have - go stack "B" - in the script  
> of the button.
> Clicking the button does make the substack "B" appear, but it has  
> not become the active stack. Only if I click in the substack "B" it  
> becomes the active stack (and gets the proper menu in Mac OSX).
> All works fine if I close the stack "Indicator".
> So, what commands do I use to make the stack appear and become the  
> active stack with the indicator open?. Toplevel does close the stack  
> first (i don't want that) and does not work either as I can remember.
>
> Thanks,
>
> Beat


_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
Beat Cornaz-2

Re: active stack

Reply Threaded More More options
Print post
Permalink
In reply to this post by Beat Cornaz-2
Thanks Beranard, Malte and Mark for your suggestions. I will try them  
and see which will fit best.

Just to answer Bernard & Malte's questions :
Stack A and B and Indicator are all substacks (all the stacks  
mentioned are normal substacks, except the 'Indicator' which is also  
a substack, but has the systemsWindow set to true).

Thanks guys,

Beat

_______________________________________________
use-revolution mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution