Is it possible to reset pixmap assigned to panel?

BlitzMax Forums/BlitzMax GUI Programming/Is it possible to reset pixmap assigned to panel?

Is it possible to reset pixmap assigned to panel?

If you mean "change" the panel pixmap. Just SetPanelPixmap() again with a different pixmap.

Setting it to Null should clear the pixmap.

I tried to do so:
SetPanelPixmap mypanel, Null

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

You might want to post some code.

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


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.
SuperStrict

Local MyWindow:TGadget=CreateWindow("Panel Example", 200,200,320,240)
Local MyPanel:TGadget=CreatePanel(110,30,80,80, MyWindow, PANEL_ACTIVE)
Local image1:TPixmap=LoadPixmap("MAX.PNG")
Local image:TPixmap = image1

Repeat
  WaitEvent()
  Select EventID()
  Case EVENT_WINDOWCLOSE
     End
  Case EVENT_MOUSEENTER
     image=Null
  Case EVENT_MOUSELEAVE
     image=image1
   End Select
  SetPanelPixmap MyPanel, image, PANELPIXMAP_CENTER
Forever

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

hm..but this code takes not responding effect!

i think i have too old maxgui...

2All: thanks a lot for you help!

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.