Re: [racket] Invisible Canvas question

2011-03-31 Thread Eduardo Bellani
Thanks Matthew for the prompt reply. Just noticed the dot and the part in the docs referring to the geometry management. On 03/31/2011 05:58 PM, Matthew Flatt wrote: > A plain `panel%' doesn't perform any geometry management of its > children, and so `invisible-canvas' isn't moved and resized to f

Re: [racket] Invisible Canvas question

2011-03-31 Thread Matthew Flatt
A plain `panel%' doesn't perform any geometry management of its children, and so `invisible-canvas' isn't moved and resized to fill the frame. On my screen, I can see a little white dot where the canvas is 1 pixel by 1 pixel. Normally, you want either `vertical-panel%' or `horizontal-panel%', or y

[racket] Invisible Canvas question

2011-03-31 Thread Eduardo Bellani
Could someone please explain why there is an invisible canvas in this example? Env: Linux 2.6.31-23-generic Ubuntu i686 GNU/Linux racket 5.1.0.4 #lang racket (require racket/gui) (define bitmap-canvas% (class canvas% (init-field [bitmap #f]) (inherit get-dc) (define/override (on-p