Hi Farshad,
I just looked at the demo which does work to see what you are doing.
You are actually checking for MouseDown within the container panel and then calling popup.
I was simply dropping a popup menu on a form and setting the forms popmenu property to unipopupmenu1. I guess this is just the 'web' way in that different containers can have a different popupmenu. I'm so used to the old Delphi way of dropping a popup on a form and setting properties.
Have to say first time I'm using unigui in anger and its awesome!
Regards
Gary