[plt-scheme] change frame:standard-menus<%> callback

From: Robert Bruce Findler (robby at cs.uchicago.edu)
Date: Tue Jan 14 08:00:44 EST 2003

You have to override the method. Something like this:

(define new-frame%
  (class frame:standard-menu%
    (define/override (file-menu:open-callback x y)
      ... do something different ...)
    (super-instantiate ())))

(define o (make-object new-frame% ...))
(send o show #t)

;; then, choose the file|open menu and see something different happen.

At Tue, 14 Jan 2003 08:17:47 +0100, "Nicolas Chevallier" wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> I don't understand how to change the callback in a
> frame:standard-menus<%>
> (send a-frame:standard-menus file-menu:open-callback item evt)
> anyone can send me an example?
> Thanks

Posted on the users mailing list.