Maybe i'm doing something wrong or it's a bug or something but i can only ever drag the panel once. So it seems the event function is only being called once.
I think the while loop may be a contributing factor because if i just have a function that calls a messageBox, then i can click the panel infinite times and it will show the MessageBox.
While we are on the subject. In Lite-C, when you call a PANEL event you can pass the PANEL pointer to the function allowing you to see which panel called the function. I don't know if this is possible with the wrapper because the event property expects an EventVoid signature, so no paramter passing. I do have a workaround with mouse_panel, but it would make things a little easier. Just a thought.