[plt-scheme] Re: New-line & text%

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Wed Nov 28 17:01:47 EST 2007

Laurent wrote:
> If i do that, i see in the text% "\\n" :(
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>   


(define frame (instantiate frame% ("Example")))

(define text (instantiate text% ()))

(define editor-canvas (instantiate editor-canvas% (frame) (editor text)))

(send text insert "\\n" 0)
    
(send frame show #t)




Posted on the users mailing list.