Rendering 2htdp/image to bitmap% (was Re: [racket-users] Re: Error message from GUI)

2016-08-02 Thread Tony Garnock-Jones
On 08/02/2016 04:27 PM, Robby Findler wrote: > 2htdp/images can be 0xN or Nx0 just fine. If you wish to render them > to a bitmap, does the file/convertible library not work for you? For me? No, I needed a bitmap% object rather than a file. Tony -- You received this message because you are subs

Re: [racket-users] Re: Error message from GUI

2016-08-02 Thread Robby Findler
2htdp/images can be 0xN or Nx0 just fine. If you wish to render them to a bitmap, does the file/convertible library not work for you? Robby On Tue, Aug 2, 2016 at 11:01 AM, Matthias Felleisen wrote: > > A 0-sized bitmap in 2htdp is the neutral element for many operations. > > ;; [Listof Image] -

Re: [racket-users] Run Button interaction

2016-08-02 Thread 'John Clements' via Racket Users
> On Aug 2, 2016, at 6:02 AM, Normal Loone wrote: > > Hello, > > I am writing a plugin that tracks the development of code. Currently I want > to save the times the run button is pressed (i.e. the code is executed). > How can I access when the run button is pressed? > > Additionally I'd like

Re: [racket-users] Re: Error message from GUI

2016-08-02 Thread Matthias Felleisen
A 0-sized bitmap in 2htdp is the neutral element for many operations. ;; [Listof Image] -> Image (define (composite l-of-images) (foldl beside empty-images l-of-images)) The inelegance of dealing with 1-element lists instead of all lists is beyond the pale. > On Aug 2, 2016, at 11:32 AM

Re: [racket-users] Re: Error message from GUI

2016-08-02 Thread Tony Garnock-Jones
On 07/29/2016 12:26 PM, George Neuner wrote: > I don't see any obvious utility in being allowed to create a zero > sized bitmap. Likewise a widget or a canvas. It is useful when writing code that handles images generically. For example, and this is a real example where the zero-size-bitmap error

[racket-users] Run Button interaction

2016-08-02 Thread Normal Loone
Hello, I am writing a plugin that tracks the development of code. Currently I want to save the times the run button is pressed (i.e. the code is executed). How can I access when the run button is pressed? Additionally I'd like to mark when the code is saved under a new name (as a new .rkt file

[racket-users] Re: Error message from GUI

2016-08-02 Thread George Neuner
Just following this conversation. On Fri, 29 Jul 2016 08:25:35 -0600, Matthew Flatt wrote: >It may be that a guard against a 0-sized drawing dimension is needed. >The right place for the guard might be in the `get-cr` method of > > gui-lib/mred/private/wx/common/backing-dc.rkt > >after `get-bac