[plt-scheme] clicking in an editor window

From: Robby Findler (robby at cs.uchicago.edu)
Date: Sat Oct 8 11:24:31 EDT 2005

At Sat, 08 Oct 2005 11:17:57 -0400, Prabhakar Ragde wrote:
> (PS How do I make sure that the user program does not hang waiting for a 
> mouse click in a window that the user has closed instead of clicking in it?)

You might try overriding the on-close method in the window to do
something. You'll need to create a subclass of the frame% class to do
so, like this:

(define my-frame%
  (class frame%
    (define/override (on-close) (printf "plink\n"))
    (super-new)))

Robby


Posted on the users mailing list.