Is it possible to reset pixmap assigned to panel?

BlitzMax Forums/MaxGUI Module/Is it possible to reset pixmap assigned to panel?

Broker(Posted 2007) [#1]
Is it possible to reset pixmap assigned to panel?


CASO(Posted 2007) [#2]
If you mean "change" the panel pixmap. Just SetPanelPixmap() again with a different pixmap.


grable(Posted 2007) [#3]
Setting it to Null should clear the pixmap.


Broker(Posted 2007) [#4]
I tried to do so:
SetPanelPixmap mypanel, Null

And i get not responding application as result.
Any ideas?


tonyg(Posted 2007) [#5]
You might want to post some code.


Broker(Posted 2007) [#6]
ok, my code:

'14 panels on a window, stored in array panUnit
'clear all panels & labels
For i=0 To 13
	SetPanelPixmap(panUnit[i], Null)
	SetGadgetText lblUnit[i], ""
Next



tonyg(Posted 2007) [#7]
Ok, let's have another go.
You might want to post a simple example showing your issue which results in a 'Not Responding' application.
<edit>
How about this :
I took Assari's Setpanel example from Panels and Mouse Events
which is part of his excellent tutorials and modified it very slightly to use the advice given so far in this topic.

Now, as you haven't posted any useable code, I have no idea whether this helps or has been a waste of my time.


Broker(Posted 2007) [#8]
hm..but this code takes not responding effect!

i think i have too old maxgui...

2All: thanks a lot for you help!


SebHoll(Posted 2007) [#9]
Yeah - it was only added to a recent version of MaxGUI when I posted that there wasn't a way to do it in the Bug forums a while back. I know it definitely works on Cocoa, Win32, and GTK.