Copying data to ClipBoard

I have a photon widget PtList which contains several elements. I want to select some part of the text in PtList widget and copy it to the clipboard. After copying this data, I want to paste it in the same widget or may be any other text editor.

Please tell me how do i go about it?

Thank you.