Copying text of label


How can I copy some part of a label displayed on screen (created using juce) and paste it on say a notepad ? I can not right-click or select any text on the screen.
Do i need to add mousedown event to give the option of copying ? But can i keep the copied text on clipboard so that user can paste it wherever he wants ? Or is there a simpler way ?


You could use a TextEditor. No other components are designed to do this kind of thing automatically, but you could obviously write or modify one yourself and use the SystemClipboard class to copy it.