Copy over contents of a listbox

How should I go about, copy the contents of a hierarchical listbox to a popup menu. Btw does the popup menu support having a textfield contained within it.

THANKS