1. editbox with variable attached.
2. menu with your choices listed
3. regular button on the right of the editbox activates the menu
4. clicking the menu item sets the variable attached to the editbox
5. menu closes up.

the only issue is if you want to click 'off' the menu without selecting anything. you need to have a clickable area outside the menu list that closes it up.

hope it helps

Regards