|
Update Dialog on a specific BITMAP |
GullRaDriel
Member #3,861
September 2003
|
Hello. basically I need draw my DIALOG on a specific BITMAP but this is not working. Here is the code:
Where do am I wrong ? _ "Code is like shit - it only smells if it is not yours" |
Matt Weir
Member #7,476
July 2006
|
I think I tried to do the same thing a while ago and came to the conclusion that it could be broken. I switched my program to OpenLayer (for other reasons) and promptly forgot about it before following it up any further. (I could have been doing something wrong too though...) Matt Weir. |
Kitty Cat
Member #2,815
October 2002
|
A dialog uses a dirty rectangles-like system. So when you clear the bitmap, the dialog has no idea it needs to redraw itself, and thus doesn't, leaving your bitmap blank. Either don't clear the bitmap, or tell the dialog to redraw all of itself: -- |
Timorg
Member #2,028
March 2002
|
You needed to set the gui objects colors set_dialog_color() and broadcast_dialog_message() telling it needs to be redrawn
____________________________________________________________________________________________ |
GullRaDriel
Member #3,861
September 2003
|
That solves my problem, thanks. "Code is like shit - it only smells if it is not yours" |
|