Re: [racket-users] How to draw relative to screen size using worlds?

2017-11-06 Thread Luis Sanjuán
Hi, Matthias. I'm not sure about it either, but one situation where learners or users might miss it is when they want to share their work. If their code follows the design principles HtDP teaches, the world rendering will rely on a single point of control, say the width and/or height of the

[racket-users] using threads in gui

2017-11-06 Thread Stephen De Gabrielle
Hi, I'm tooling around with a current-user-directory and hierarchical-list% in #lang racket/gui and it seems to be working adding folders works ok, but when I delete a group of folders I get the following error; hierarchical-list-compound-item::delete-item: item not found:

Re: [racket-users] How to control display of objects in *SL

2017-11-06 Thread Matthias Felleisen
The relevant lines from htdp-lang.rkt are > ;; set the global-port-print-handler after the super class because the super > sets it too > (run-in-user-thread > (lambda () >(define my-setup-printing-parameters >

[racket-users] How to control display of objects in *SL

2017-11-06 Thread Nadeem Abdul Hamid
How do you control the way objects of a class are printed out in BSL/ISL/etc.? I tried implementing the 'printable' interface but all that shows up in BSL is (instantiate (class ...) ...) Here's what I tried: ;;; thingy.rkt === #lang racket (provide make-thingy)

Re: [racket-users] How to draw relative to screen size using worlds?

2017-11-06 Thread Matthias Felleisen
> On Nov 6, 2017, at 5:51 AM, Milton Silva wrote: > > Assuming that the big-bang needs to run on different sized screens and using > fullscreen mode in big-bang, how can I draw a shape(e.g. rectangle) that > occupies a percentage of the fullscreen? I don’t think you can

[racket-users] How to draw relative to screen size using worlds?

2017-11-06 Thread Luis Sanjuán
You probably need to get the dimensions of the screen with get-display-size from racket/gui It would be great to have primitives for that in 2htdp/universe. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and

[racket-users] How to draw relative to screen size using worlds?

2017-11-06 Thread Milton Silva
Assuming that the big-bang needs to run on different sized screens and using fullscreen mode in big-bang, how can I draw a shape(e.g. rectangle) that occupies a percentage of the fullscreen? -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To