If I load this code in DrScheme and select Language (module...) and hit the run button it works (shows the window with the message):<br>(module test mzscheme<br> (require (lib "class.ss") (lib "mred.ss" "mred"))<br>
(define<br> (main)<br> (letrec ((frame-155<br> (new<br> frame%<br> (parent #f)<br> (alignment '(center top))<br> (stretchable-height #t)<br> (min-width 0)<br>
(style '())<br> (label "test")<br> (width 146)))<br> (message-156<br> (new<br> message%<br> (parent frame-155)<br>
(label "Hello!")<br> (style '()))))<br> (send frame-155 show #t)))<br> (main))<br><br>Now, if I load the same code in Emacs quack mode with "mred.exe -z" running, there is now way I can make it show the window using the code as is (I tried to evaluate all region, or the last s-exp, nothing helps).<br>
If I remove the "(module test mzscheme " wrapping and start evaluate top level forms one after another, then by the time I evaluate (send frame-155 show #t) it will run the window without any problem.<br>My question is how can I develop a module like above in the quack mode incrementally (adding/removing UI elements)?<br>
Basically, what the best practice of developing MrEd UI in Quack incrementally?<br><br>Thank you,<br>Andrew<br>