Without seeing the code, this is just a blind guess, but try "(send canvas 
refresh)" in the implementation for your "set-bitmap" method.

Best Regards,

On Thursday, December 1, 2016 at 4:28:02 PM UTC+8, Hersh Krishna wrote:
> So I'm making a frame which draws a bitmap that can be replaced at runtime so 
> if you call (send my-frame set-bitmap *bitmap*) it will switch from 
> displaying whatever bitmap you had previously to the bitmap you passed it. 
> (its doing a lot of other stuff and I want the interface to this canvas 
> that's drawing the bitmap to be through the frame) At least that's the 
> theory. In practice, whenever I call (send my-frame show #t) the bitmap 
> that's being drawn is locked permanently. Doesn't matter if the 
> paint-callback fetches the bitmap dynamically or if I draw in the bitmap's 
> dc. I know the bitmap is getting updated or switched. Is there something I'm 
> missing or a technique I should be using?

You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to