Wow, that is even better than that! <br>Digging a bit further, it uses the framework/splash module,<br>which does everything I wanted (and more), even with the gauge<br>that progresses automatically, and it works like a charm out of the box!<br>
Awesome.<br><br>And it is so simple to use:<br><br><<<<br>#lang racket/base<br><br>(require racket/runtime-path<br> (for-syntax racket/base) ; for build-path for runtime-path<br> framework/splash<br>
)<br><br>(define-runtime-path splash-path <br> (build-path "img" "splash.png"))<br><br>(start-splash splash-path "My Project" 200) ; frame name, default width<br><br>(dynamic-require "my-project.rkt" #f)<br>
<br>(shutdown-splash)<br>(close-splash)<br>>>><br><br>(no need for runtime-path if the application is not <br>intended for distribution)<br><br>Maybe this could be documented?<br>
<br>
<br><br><br><div class="gmail_quote">On Wed, Sep 1, 2010 at 14:16, Robby Findler <span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu">robby@eecs.northwestern.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
collects/drracket/drracket.rkt does something similar to set up<br>
compilation handlers and (optionally) a profiler that I use for<br>
performance debugging, and then it loads<br>
drracket/private/drracket-normal.rkt which does the splash screen bit.<br>
<font color="#888888"><br>
Robby<br>
</font><div><div></div><div class="h5"><br>
On Wed, Sep 1, 2010 at 7:11 AM, Laurent <<a href="mailto:laurent.orseau@gmail.com">laurent.orseau@gmail.com</a>> wrote:<br>
> Excellent! Thanks a lot!<br>
> By any chance, do you remember the name of the file that does that?<br>
> (Don't take more than 10s for this question, it's not worth it.)<br>
><br>
> On Wed, Sep 1, 2010 at 14:00, Robby Findler <<a href="mailto:robby@eecs.northwestern.edu">robby@eecs.northwestern.edu</a>><br>
> wrote:<br>
>><br>
>> A minimal amount of stuff is loaded (roughly what is loaded when<br>
>> gracket itself starts up) and then the splash screen is opened and the<br>
>> rest of drracket is loaded via a dynamic-require. Also, progress on<br>
>> the splash screen's gauge% is made each time a file is loaded, which<br>
>> is monitored by the load-handler.<br>
>><br>
>> Robby<br>
>><br>
>> On Wed, Sep 1, 2010 at 1:56 AM, Laurent <<a href="mailto:laurent.orseau@gmail.com">laurent.orseau@gmail.com</a>> wrote:<br>
>> > Hi,<br>
>> ><br>
>> > Is it possible to have a splash screen displayed while loading a GRacket<br>
>> > program?<br>
>> > Much like DrRacket's in fact.<br>
>> > Because for some projects, it can take several seconds to initialize<br>
>> > everything.<br>
>> > I tried to open up a frame at the very beginning of the code, but it<br>
>> > only<br>
>> > shows up<br>
>> > after everything is loaded too.<br>
>> ><br>
>> > How is DrRacket splash screen shown up so early, while DrRacket is<br>
>> > loading?<br>
>> ><br>
>> > Thanks,<br>
>> > Laurent<br>
>> ><br>
>> > _________________________________________________<br>
>> > For list-related administrative tasks:<br>
>> > <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br>