Is it possible to reset pixmap assigned to panel?
BlitzMax Forums/MaxGUI Module/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. 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. |