[racket-dev] nice way to show a bitmap in a frame?
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!
John
-------------- 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>