<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>#lang racket/gui<br>(define bitmap (make-parameter #f))<br>(define dc (make-parameter #f))<br>(define path (make-parameter #f))<br><br>(parameterize* ((bitmap (make-bitmap 500 500 #f))<br> (dc (let ((temp (new bitmap-dc% (bitmap (bitmap)))))<br> (send temp set-pen "black" 2 'solid)<br> temp))<br> (path (new dc-path%)))<br> (define frame (new frame% [min-width (send (bitmap) get-width)]<br> [min-height (send (bitmap) get-height)]<br> [label "test"]))<br> (send (path) move-to 50 50)<br> (send (path) line-to 250 250)<br> (send (dc) draw-path (path))<br> (define canvas (new canvas% [parent frame]))<br> (send (send canvas get-dc) draw-bitmap (bitmap) 0 0)<br> (send frame show #t))<BR><br><BR>I don't know what i am doing wrong, the bitmap is drawn, if i return it i get the line all fine, the problem is that the frame either doesn't get updated or never tries to draw. Is this a bug in canvas% or am I doing something terribly wrong?<BR>                                            </div></body>
</html>