[plt-scheme] DrScheme, detecting frame activation and deactivation, where should I look next?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue May 15 02:32:19 EDT 2007

At Mon, 14 May 2007 23:05:08 -0500, "Grant Rettke" wrote:
> My goal is to detect DrScheme frame activation and deactivation.

You'll want to override the `on-activate' method in the DrScheme frame.
It will go something like this, I think:

 (define (activate-frame-mixin %)
   (class %
     (define-override (on-activate? active?)
       (super on-activate? active?))

 (drscheme:get/extend:extend-unit-frame activate-frame-mixin)


Posted on the users mailing list.