Robby, your suggestion didn't work with 5.1.1 under Ubuntu.<div><br></div><div>The difference is that multiple clicks instantiates multiple windows, but none of them were shown on top.</div><div><br></div><div>Anyway I am satisfied with the current state. I can launch other apps using racket/system and they do take focus!</div>
<div>For example I was able to open a file on Gedit:</div><div><br></div><div><br></div><div><div>#lang slideshow</div><div>(require racket/gui racket/system)</div><div><br></div><div><b>(define (launch-app cmd)</b></div>
<div><b> (system cmd))</b></div><div><br></div><div>(define frame (new frame% [label "Example"]))</div><div><br></div><div>(define msg (new message% [parent frame]</div><div> [label "No events so far..."]))</div>
<div><br></div><div>(new button% [parent frame]</div><div> [label "Click Me"]</div><div> (callback (λ (button event)</div><div> (send msg set-label "Button click"))))</div><div>
<br></div><div>(slide</div><div> #:title "Test"</div><div> (clickback (hyperlinkize (t "Hello"))</div><div> (λ () (send frame show #t)))</div><div> <b>(clickback (hyperlinkize (t "Gedit"))</b></div>
<div><b> (λ () (launch-app "gedit /proc/cpuinfo")))</b>)</div></div><div><br></div><div><br></div><div><br></div>
<div><br></div><div>[]'s</div><div><br clear="all">Rodolfo Carvalho<br>
<br><br><div class="gmail_quote">On Sat, Jun 11, 2011 at 15:57, Robby Findler <span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
That does work for me, in the latest pre-release under mac os x. I<br>
have a vague recollection that there was a linux bug related to this<br>
that has been fixed, but I'm not sure.<br>
<br>
One thing to try to work around it (if upgrading isn't an option) is<br>
to actually create the frame inside the callback:<br>
<div><br>
#lang slideshow<br>
(require racket/gui)<br>
<br>
</div><div>(slide<br>
#:title "Test"<br>
(clickback (hyperlinkize (t "Hello"))<br>
(λ ()<br>
(define frame (new frame% [label "Example"]))<br>
<br>
(define msg (new message% [parent frame]<br>
[label "No events so far..."]))<br>
<br>
(new button% [parent frame]<br>
[label "Click Me"]<br>
(callback (λ (button event)<br>
(send msg set-label "Button click"))))<br>
<br>
</div> (send frame show #t))))<br>
<font color="#888888"><br>
<br>
Robby<br>
</font><div><div></div><div><br>
On Sat, Jun 11, 2011 at 12:10 PM, Rodolfo Carvalho <<a href="mailto:rhcarvalho@gmail.com" target="_blank">rhcarvalho@gmail.com</a>> wrote:<br>
> I tried the following, but the new frame is not shown on top of the slide (I<br>
> need to alt-tab to see it):<br>
><br>
> #lang slideshow<br>
> (require racket/gui)<br>
> (define frame (new frame% [label "Example"]))<br>
> (define msg (new message% [parent frame]<br>
> [label "No events so far..."]))<br>
> (new button% [parent frame]<br>
> [label "Click Me"]<br>
> (callback (λ (button event)<br>
> (send msg set-label "Button click"))))<br>
> (slide<br>
> #:title "Test"<br>
> (clickback (hyperlinkize (t "Hello"))<br>
> (λ () (send frame show #t))))<br>
><br>
> Suggestions?<br>
> []'s<br>
> Rodolfo Carvalho<br>
><br>
><br>
> On Sat, Jun 11, 2011 at 11:00, Matthew Flatt <<a href="mailto:mflatt@cs.utah.edu" target="_blank">mflatt@cs.utah.edu</a>> wrote:<br>
>><br>
>> You could have a clickback in a slide that creates a new frame on top<br>
>> of the Slideshow frame. That approach has worked ok for me.<br>
>><br>
>> At Fri, 10 Jun 2011 17:58:21 -0300, Rodolfo Carvalho wrote:<br>
>> > Hello everybody,<br>
>> ><br>
>> > Has anyone had the experience of embedding a "live code editor" into<br>
>> > Slideshow?<br>
>> ><br>
>> > I woke up with this idea for a coming presentation, I would talk with<br>
>> > slides<br>
>> > and from time to time I would show a code editor, type, and run a script<br>
>> > (not necessarily racket code) and see the result / show to the audience.<br>
>> ><br>
>> > Of course this could be done alt-tabbing out of the presentation, but it<br>
>> > would be cool to have something that follow along the presentation.<br>
>> ><br>
>> > Was it just a crazy dream?<br>
>> ><br>
>> > []'s<br>
>> ><br>
>> > Rodolfo Carvalho<br>
>><br>
><br>
><br>
</div></div><div><div></div><div>> _________________________________________________<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>
</div></div></blockquote></div><br></div>