<div dir="ltr">Thanks, I've fixed those docs.<div><br></div><div>Robby</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 22, 2013 at 9:06 PM, Stephen Chang <span dir="ltr"><<a href="mailto:stchang@ccs.neu.edu" target="_blank">stchang@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ah ok I see now. I didn't look hard enough.<br>
<br>
I saw the "frame%" so I was clicking around here:<br>
<a href="http://docs.racket-lang.org/tools/drracket_unit.html?q=on-close#%28meth._%28%28%28lib._drracket%2Ftool-lib..rkt%29._drracket~3aunit~3aframe~25%29._on-close%29%29" target="_blank">http://docs.racket-lang.org/tools/drracket_unit.html?q=on-close#%28meth._%28%28%28lib._drracket%2Ftool-lib..rkt%29._drracket~3aunit~3aframe~25%29._on-close%29%29</a><br>
<br>
On Wed, May 22, 2013 at 7:59 PM, Matthias Felleisen<br>
<div class="HOEnZb"><div class="h5"><<a href="mailto:matthias@ccs.neu.edu">matthias@ccs.neu.edu</a>> wrote:<br>
><br>
> From the docs:<br>
><br>
> "<br>
> method<br>
> (send a-top-level-window on-close) → void?<br>
><br>
> Refine this method with augment.<br>
> ...<br>
> "<br>
><br>
><br>
><br>
> On May 22, 2013, at 7:14 PM, Stephen Chang wrote:<br>
><br>
>> I was about to reply with the same answer as Matthias, but with<br>
>> define/override instead of define/augment, but I kept getting an<br>
>> error. Does it say anywhere in the docs whether a method is declared<br>
>> using pubment or public? I couldnt find it.<br>
>><br>
>> On Wed, May 22, 2013 at 7:06 PM, Matthias Felleisen<br>
>> <<a href="mailto:matthias@ccs.neu.edu">matthias@ccs.neu.edu</a>> wrote:<br>
>>><br>
>>> Here we go:<br>
>>><br>
>>> #lang racket/gui<br>
>>><br>
>>> (define my-frame%<br>
>>> (class frame%<br>
>>> (super-new)<br>
>>> (define/augment (on-close)<br>
>>> (displayln "closing now"))))<br>
>>><br>
>>> (define frame<br>
>>> (new my-frame% [label "on closing"][width 300][height 200]))<br>
>>><br>
>>> (send frame show #t)<br>
>>><br>
>>><br>
>>><br>
>>> On May 22, 2013, at 6:55 PM, Zelah Hutchinson wrote:<br>
>>><br>
>>>> From the documentation I gather that I need to augment the on-close method. I do not understand how to do this. Can someone show me a tiny example of how to perform an operation when a window is closed? Thank you.<br>
>>>><br>
>>>> ____________________________________________________________<br>
>>>> FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!<br>
>>>> Check it out at <a href="http://www.inbox.com/marineaquarium" target="_blank">http://www.inbox.com/marineaquarium</a><br>
>>>><br>
>>>><br>
>>>><br>
>>>> ____________________<br>
>>>> Racket Users list:<br>
>>>> <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
>>><br>
>>><br>
>>> ____________________<br>
>>> Racket Users list:<br>
>>> <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
><br>
<br>
____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
</div></div></blockquote></div><br></div></div>