Maybe i wasn't clear enough.
My code checks the events attached to a button.
So i don't think, i should set any panel event.
Does it change something?