Re: [racket-users] Re: How to change text alignment in a text-field% and how to make text-field% read-only but still copy-able

2016-12-03 Thread Winston Weinert
> Use the lock method: > >(send e lock #t) This works perfectly. Thanks! -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [racket-users] Re: Language-provided bindings and arrows in DrRacket

2016-12-03 Thread Robby Findler
The fully expanded form of the original program doesn't have a require that brings in displayln? So I'm not sure how Check Syntax could know to draw an arrow. Robby On Sat, Dec 3, 2016 at 9:11 PM, Dupéron Georges wrote: > I made a copy-paste mistake, the

[racket-users] Re: Language-provided bindings and arrows in DrRacket

2016-12-03 Thread Dupéron Georges
I made a copy-paste mistake, the replacement for the last line of "MyLang.rkt" should use "body2" instead of "body": #'(#%plain-module-begin (module nm lng (#%plain-module-begin . body2))) -- You received this message because you are subscribed to the Google Groups "Racket Users"

[racket-users] Language-provided bindings and arrows in DrRacket

2016-12-03 Thread Dupéron Georges
I'm writing a meta-language (a small extension of scribble/lp2), which delegates to a second language. I am using the neat trick suggested to me by Alex Knauth [1], but I have trouble getting the arrows to be drawn in DrRacket for language "built-ins". A boiled down version of the language

[racket-users] Re: Reducing Program Startup Time

2016-12-03 Thread Dupéron Georges
A few ideas: 1) Loading a lot of modules can be slow. You are already avoiding that by using racket/base and racket/gui/base, so that's good, but it already takes me 0.5s just to require these :-( . I don't know it there is much to do about this. 2) Your main.rkt might be doing a some lengthy

Re: [racket-users] Re: How to change text alignment in a text-field% and how to make text-field% read-only but still copy-able

2016-12-03 Thread Ryan Culpepper
On 12/03/2016 02:15 PM, Winston Weinert wrote: I managed to resolve the alignment question with the following lines: (define e (send my-text-field get-editor)) (send e auto-wrap #t) (send e set-paragraph-alignment 0 'center) However, I'm still at a loss how to make the text-field% read-only

[racket-users] Re: How to change text alignment in a text-field% and how to make text-field% read-only but still copy-able

2016-12-03 Thread Winston Weinert
I managed to resolve the alignment question with the following lines: (define e (send my-text-field get-editor)) (send e auto-wrap #t) (send e set-paragraph-alignment 0 'center) However, I'm still at a loss how to make the text-field% read-only yet selectable. -- You received this message

[racket-users] How to change text alignment in a text-field% and how to make text-field% read-only but still copy-able

2016-12-03 Thread Winston Weinert
I didn't see a way to make the text in a text-field% right or center aligned. There was some talk about using the set-paragraph-alignment on the text-field%'s editable<%> (get-editor), but this didn't appear to work for me. Also, I noticed if one sets the text-field%'s enabled to #f, it makes

[racket-users] htdp/bsl output reapeating decimals instead of fractions

2016-12-03 Thread Fernando Basso
I am doing this course: https://www.edx.org/xseries/how-code-systematic-program-design It uses the Basic Student Language and they use DrRacket, which is fine. Still, I happen to also use other editors, like vim and emacs. With emacs, I use racket-mode and I am able to run tests with