[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] cut, copy, paste in StyledText Widget
|
- From: kyle farnand <kfarnand@xxxxxxxxxxxxx>
- Date: Thu, 17 Apr 2003 15:06:09 -0400
- Newsgroups: eclipse.tools
- Organization: EclipseCorner
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030210
When I use the below code, I get copy and paste for free.
>Text modelText = new Text(modelXMLContainer, SWT.READ_ONLY |SWT.MULTI);
>modelText.setText(modelString);
But when I used the StyledText widget, I lose this functionality.
>StyledText modelText = new StyledText(modelXMLContainer, SWT.READ_ONLY);
>modelText.setText(modelString);
An earlier post said I should get the same copy and paste functionality
if I use SWT.READ_ONLY in the constructor from both widgets but that is
not the case.
Is there an easy way to get this copy and paste functionality out of the
StyledText widget (as in the Text widget) or do I have to implement it
myself?