how to make a popup menu ?

How to make a popup menu when I click on the widget just like in microsort windows?

Enable the Pt_MENUABLE flag in the widget flags. Create a new menu resource and make that the target of the menu callback on the widget. I belive this is covered in the help.