Is 'exit' the proper way to exit a gui application in Racket using a button or is some other method best for this?
(define myfr
(new frame% [label "myframe"] [width 100] [height 100] ))
(new message% [label "my gui app"][parent myfr])
(define exitbutton
(new button% [parent myfr] [label "Exit"]
[callback (lambda (b e) (exit) )]))
(send myfr show #t)
I find that DrRacket gives "Interactions disabled" warning message on using the exit button but there is a clean exit when closing using frame's [x] button.
I found "on-exit" method but not actual exit method on this page: https://docs.racket-lang.org/gui/frame_.html?q=frame%25 . Also nothing specific is mentioned on https://docs.racket-lang.org/reference/Exiting.html
Following statement, I believe, will only hide the frame and not close the application:
(send myfr show #f)