There's two ways to do this.

If we add 'fullscreen to this line of this file, then the green button
will turn into the fullscreen button on new Macs:

https://github.com/racket/htdp/blob/fc64e81fd9859b19f1fcabe44f65297ce207fdba/htdp-lib/2htdp/private/world.rkt#L213

However, that probably won't look right, because the world won't be
drawn at the correct size.

You can tell what the correct size is by calling get-display-size and
using that to decide how big you show draw your world.

http://docs.racket-lang.org/gui/Windowing_Functions.html?q=screen-size#%28def._%28%28lib._mred%2Fmain..rkt%29._get-display-size%29%29

The best thing to do would be to combine these two things, so that you
always have the right size and then enable the fullscreen button.

Another thing we/you could do is scale the world that you actually
draw to the size of the window/screen. The challenge there is to make
sure you de-scale the window coordinates on mouse events.

Jay



On Wed, Sep 30, 2015 at 4:21 AM, Byron Davies <byrondav...@starshine.us> wrote:
> Is there any safe way for big-bang to take over the whole screen of the 
> computer (Mac for now, but more generally in future)?  As part of our Global 
> Learning XPRIZE work, I’m now actually deploying big-bang mini-apps in the 
> kindergarten to help kids learn about the sounds that make up words.  They 
> loved the first app today, and they appear to be benefiting from it, but 
> confusion can arise when they click outside the window, especially on the 
> menu bar.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Jay McCarthy
http://jeapostrophe.github.io

           "Wherefore, be not weary in well-doing,
      for ye are laying the foundation of a great work.
And out of small things proceedeth that which is great."
                          - D&C 64:33

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to