Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to get the Cursor-Position in a TextArea?
How to get the Cursor-Position in a TextArea? [message #447996] Thu, 23 December 2004 09:07 Go to next message
Eclipse UserFriend
Originally posted by: melko.gmx.at

Hallo!

Is it possible to get the Cursor-Position in a TextArea? Because I need
only the Text that is typed before the Cursor all the text behind it don't
match!
Thank you for your Suggestion!

Nice greetings
Re: How to get the Cursor-Position in a TextArea? [message #447998 is a reply to message #447996] Thu, 23 December 2004 12:38 Go to previous messageGo to next message
cloudor Mising name is currently offline cloudor Mising nameFriend
Messages: 34
Registered: July 2009
Member
Text.getSelection()

melko wrote:
> Hallo!
>
> Is it possible to get the Cursor-Position in a TextArea? Because I need
> only the Text that is typed before the Cursor all the text behind it
> don't match! Thank you for your Suggestion!
> Nice greetings
>

--
Cloudor Pu
http://cloudor.mysmth.net/
Re: How to get the Cursor-Position in a TextArea? [message #448007 is a reply to message #447996] Thu, 23 December 2004 17:38 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Text.getCaretPosition() or StyledText.getCaretOffset() sound like what you
need.

Grant

"melko" <melko@gmx.at> wrote in message news:cqe1sb$4sp$1@www.eclipse.org...
> Hallo!
>
> Is it possible to get the Cursor-Position in a TextArea? Because I need
> only the Text that is typed before the Cursor all the text behind it don't
> match!
> Thank you for your Suggestion!
>
> Nice greetings
>
Previous Topic:Combo with font facenames
Next Topic:[ANN] Novocode Application Framework 0.2 released
Goto Forum:
  


Current Time: Thu Oct 29 00:14:48 GMT 2020

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

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

Back to the top