Sorry, that's my mistake. I didn't understand what was happening. I tried it though and I dont see my panels.

I have #include <my_panels.c> at the top, and a seperate script named my_panels, but when I run the main script, I don't see the panels. Is there something I missed?

Gordon I need some help understanding your code. I thought I would get it worked out by looking at the manual, but I am getting confused. Could you explain the lines in the script please? For example, what does the [5] in PANEL* Panels[MAX_X][MAX_Y][5]; mean? Can I replace [MAX_X][MAX_Y] with screen_size.x and screen_size.y? I'd appreciate hearing from you. Thanks