Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Select a label's text for cut and paste?
Select a label's text for cut and paste? [message #457636] Wed, 29 June 2005 17:47 Go to next message
Chris Longfield is currently offline Chris LongfieldFriend
Messages: 111
Registered: July 2009
Senior Member
I can't seem to select the text of a label in order to copy it to the clipboard.
Is there something I need to set on the label itself to make this possible?

I'm using debian Linux/3.0.1 eclipse for an RCP app.

Chris
Re: Select a label's text for cut and paste? [message #457642 is a reply to message #457636] Thu, 30 June 2005 04:20 Go to previous messageGo to next message
Dave Orme is currently offline Dave OrmeFriend
Messages: 424
Registered: July 2009
Senior Member
Chris Longfield wrote:
> I can't seem to select the text of a label in order to copy it to the
> clipboard. Is there something I need to set on the label itself to make
> this possible?
>
> I'm using debian Linux/3.0.1 eclipse for an RCP app.

Try using a Text object in read-only mode with the colors set to look
like a Label.


Best regards,

Dave Orme

--
Visual Editor Project lead
http://www.db4o.com -- The Open-source Java Object Database
http://xswt.sf.net -- XML-based SWT page description language
Re: Select a label's text for cut and paste? [message #457831 is a reply to message #457642] Tue, 05 July 2005 16:20 Go to previous message
Chris Longfield is currently offline Chris LongfieldFriend
Messages: 111
Registered: July 2009
Senior Member
David J. Orme wrote:
> Chris Longfield wrote:
>
>> I can't seem to select the text of a label in order to copy it to the
>> clipboard. Is there something I need to set on the label itself to
>> make this possible?
>>
>> I'm using debian Linux/3.0.1 eclipse for an RCP app.
>
>
> Try using a Text object in read-only mode with the colors set to look
> like a Label.
>
>
> Best regards,
>
> Dave Orme
>
Thanks Dave,

That's pretty good - I set the background color to be the same as the containing
composite, and it looks OK and is now selectable. I do notice the text widget
is a little taller than the label widget, so my rows are vertically spread out a
little more. Anyone have tips for scrunching them back down? I do not have a
BORDER on the text widget, but I guess it still wants to pad itself a little to
provide room for the text area.

Chris
Previous Topic:MDI behaviour, Shell floating in other Shell
Next Topic:Urgent: has somebody printed simple text to a printer from a Pocket PC SWT application?
Goto Forum:
  


Current Time: Thu Mar 28 15:25:29 GMT 2024

Powered by FUDForum. Page generated in 0.03524 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top