ah, so I don't have to use emask etc. on panel to set an event. Thanks I'll give it a try.

edit
----
I tried and it works, but how would I make it so that the the mouse is in the clicked part of the panel? right now the panel moves exactly at mouse_pos.
Practically like dragging a window, the window doesn't snap to mouse position in windows os etc.
Anyway thank you very much for the help so far.
