[racket] Getting Handle

From: heraklea at gmx.de (heraklea at gmx.de)
Date: Mon Sep 3 07:44:44 EDT 2012

Hello friends,

I create and show a dialog like this:

(define (start-dialog)
(define dialog (new dialog% [label "Test"]))
(define msg (new message% [parent dialog]
                          [label "Kein Ereignis bisher"]))
(new button% [parent dialog]
             [label "Drück Mich!"]
             [callback (lambda (button event)
                         (send msg set-label "Drücken"))])
(send dialog show #t))

(define c1 (make-eventspace))
(define (show-message)
(parameterize ([current-eventspace c1])
             (thread start-dialog)))


How can I get the handle of the dialog. Or from a frame?

Yours,

Posted on the users mailing list.