librelist archives

« back to archive

Minimize and restore window

Minimize and restore window

From:
Eduardo Argollo
Date:
2010-09-07 @ 12:50
  Hi all,

Is there a way for me to programatically minimize a Shoe window? (For 
example, minimize when there a button is clicked).

Another question: Does anyone know how could I minimize to tray my Shoe 
app in windows?

Thanks for any help,
Eduardo.

Re: [shoes] Minimize and restore window

From:
Steve Klabnik
Date:
2010-09-07 @ 13:38
>
> Is there a way for me to programatically minimize a Shoe window? (For
> example, minimize when there a button is clicked).
>

I don't _think_ there's a way of doing this, could anyone else confirm?


> Another question: Does anyone know how could I minimize to tray my Shoe
> app in windows?
>

This is an outstanding feature request, actually:
http://github.com/shoes/shoes/issues#issue/33

It's not officially assigned to a release yet, but it's certainly something
that'd be useful.

Re: [shoes] Minimize and restore window

From:
ashbb
Date:
2010-09-07 @ 14:08
You are right.
There is no way to minimize a Shoes Window so far.
Thanks for the feature request. :)

ashbb

Re: [shoes] Minimize and restore window

From:
Eduardo Argollo
Date:
2010-09-07 @ 15:11
  Thank you very much for the promptly reply.

Maybe you could help me finding another alternative.

I have just build a simple app in Shoes (by the way, Shoes is really 
great) for helping me learning German. This app asks me vocabulary 
questions and works fine.

What I want is to have it asking me one vocabulary question, then I 
would like it to disappear for like 20 min (this is why I would like to 
minimize it programatically or, even better, put it to system tray). 
After this 20 min I would like it to appear again (over the other 
windows) and ask another question. So, I can learn (one question every 
20 min :) ) while I work without being much bothered.

Anyone has a good idea on how I could take the shoe app away for a while 
and show it back again?

Thank you very much,
Eduardo



On 9/7/2010 4:08 PM, ashbb wrote:
> You are right.
> There is no way to minimize a Shoes Window so far.
> Thanks for the feature request. :)
>
> ashbb

Re: [shoes] Minimize and restore window

From:
ashbb
Date:
2010-09-07 @ 16:13
Hi Eduardo,

How about this one?

Shoes.app width: 200, height: 40 do
    para 'minimize window'
    vq = %W[vocabulary bother learn programatically]
    every 5 do |i|
        window{para vq[i%vq.size]}
    end
end

If you replace 5 to 20*60, you can open a new window each 20 min.
Although you need to move first Shoes window into a corner of your desktop
by hand. :-P

ashbb

Re: [shoes] Minimize and restore window

From:
Eduardo Argollo
Date:
2010-09-07 @ 16:50
  hi ashbb,

The idea of opening a new window is very good.

I will check what happens when the main window is minimized and opens a 
child window.

Once the app is basically for me myself this will work. I can even keep 
some scoring stats on the base window.

This will to the trick until Shoes has the minimize function.

When the app gets in a good shape I will put it at The Shoebox :-)

Thanks,
Edu.

On 9/7/2010 6:13 PM, ashbb wrote:
> Hi Eduardo,
>
> How about this one?
>
> Shoes.app width: 200, height: 40 do
>     para 'minimize window'
>     vq = %W[vocabulary bother learn programatically]
>     every 5 do |i|
>         window{para vq[i%vq.size]}
>     end
> end
>
> If you replace 5 to 20*60, you can open a new window each 20 min.
> Although you need to move first Shoes window into a corner of your 
> desktop by hand. :-P
>
> ashbb

Re: [shoes] Minimize and restore window

From:
ashbb
Date:
2010-09-07 @ 21:49
> When the app gets in a good shape I will put it at The Shoebox :-)
Cool!
Looking forward to the app.
When you upload, please let us know. Can't wait! :-D

ashbb