Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Text: highlight selected text
Text: highlight selected text [message #461113] Fri, 16 September 2005 12:13 Go to next message
arne anka is currently offline arne ankaFriend
Messages: 133
Registered: July 2009
Senior Member
hi,
using gtk i want to create a Text which the content highlighted when i
click into it.
playing around with

Text myText=new Text(parent, SWT.NONE);
myText.selectAll()
or
myText.setSelection(0);

does not work, the text is not highlighted.
any help appreciated.

regards
Re: highlight selected text [message #461587 is a reply to message #461113] Mon, 26 September 2005 22:44 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
It works but the widget needs focus in order for you to see the selection.
This is Windows platform behavior.

"arne anka" <arne.anka@ginguppin.de> wrote in message
news:op.sw62whtluyrgnr@komhem...
> hi,
> using gtk i want to create a Text which the content highlighted when i
> click into it.
> playing around with
>
> Text myText=new Text(parent, SWT.NONE);
> myText.selectAll()
> or
> myText.setSelection(0);
>
> does not work, the text is not highlighted.
> any help appreciated.
>
> regards
Previous Topic:TabFolder with TabItems with own Popup Menu ?
Next Topic:Image formats supported on windows and linux?
Goto Forum:
  


Current Time: Sat Jun 15 20:48:53 GMT 2019

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

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

Back to the top