sorry I misspelled the name funny...
ist really ashbb who wrote that to help me...
2008/11/6 Louis-Philippe <[EMAIL PROTECTED]>
> Hi Dean,
> I had that exact same question last week,
> the solution I got came from asshbb on this list, It may or may not suit
> your design though:
>
> from asshbb:
> Is it necessary to open two windows at once?
> If not, how about the following?
>
> class Sample < Shoes
> $a = 'nothing'
>
> url '/', :index
> url '/main', :main
>
> def index
> para "What would you like?"
> button('yes'){$a = "YES"; clear; main}
> button('no'){$a = "NO"; clear; main}
> end
>
> def main
> button("what?") {alert("You choosed #{$a}")}
> end
> end
>
> Shoes.app :width => 200, :height => 120
>
>
> 2008/11/6 Dean Mehinovic <[EMAIL PROTECTED]>
>
> Hello,
>>
>> I am spawning a window from inside my app, and would like to keep it on
>> top while clicking on stuff in the original app window. I tried
>> assigning the popup to an instance variable and doing a @popup.focus inside
>> different methods, but it doesn't bring it up after the original app window
>> is clicked on.
>>
>>
>> Thanks,
>>
>> Dean.
>>
>
>