Skip to main content



      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 04: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 07:38 Go to previous messageGo to next message
Eclipse UserFriend
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 12:38 Go to previous message
Eclipse UserFriend
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: Fri Jul 04 03:02:42 EDT 2025

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

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

Back to the top