SetPanelPixMap problem

BlitzMax Forums/BlitzMax Programming/SetPanelPixMap problem

ozak(Posted 2006) [#1]
I have a problem where my PanelPixmap is updated in a timer, and then I refresh my pixmap cache and SetPanelPixmap is called with null which apparently freezes the panel so it's no longer updated (you know, just keeps whatever you drag over it.)
I've tried to destroy the pixmap while reloading my pixmap cache but to no avail.

Anyone experienced this?


tonyg(Posted 2006) [#2]
Others might know better but I'm having trouble understanding what you're doing.
The easiest way would be to supply some simple example code which shows the problem.
Otherwise...
1) What do you mean by pixmap cache?
2) How/why do you call setpanelpixmap with 'null'?
3) What action are you taking? e.g. you mention 'drag over it'. Are you trying to do something like the imagedrop example?
4) How are you 'reloading' your pixmap cache?


Dreamora(Posted 2006) [#3]
Did you try to call a RedrawGadget with the panel after exchanging the pixmap?


ozak(Posted 2006) [#4]
Yep. Problem is I have a list of pixmaps (hence the cache).
At some point these gets reloaded even thought the panel have one of them set as it's pixmap. So, the pixmap get's updated at some point while I reload the pixmap list (because it's in a timer). So it completly hangs and doesn't gets redrawn.
Calling redrawgadget does nothing, and interesting deleting and recreating the gadget after load produces the same result.
I did however find a workaround so I'll be fine :)