[racket-dev] nice way to show a bitmap in a frame?

From: John Clements (clements at brinckerhoff.org)
Date: Sat Mar 19 11:10:25 EDT 2011

On Mar 19, 2011, at 8:05 AM, Matthew Flatt wrote:

> You could use `message%' with the bitmap as its label:
> #lang racket/gui
> (define bitmap (read-bitmap "/tmp/red-arrow.bmp"))
> (define f (new frame% [label "Bitmap"]))
> (new message% [parent f] [label bitmap])
> (send f show #t)

That's a lot shorter.  Thanks!


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4669 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20110319/589042de/attachment.p7s>

Posted on the dev mailing list.