[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] How to obtain cursor position in Text control

Hi,

I need to obtain the cursor position from my SWT Text control (not the mouse cursor, the text cursor).

The idea is to when i have a Text box with some text obtain the location of the cursor, example:

 -----------
 so|me text
 -----------

note: the | is the text cursor

In this example the cursor is in the position 2 between "so" and "me" (word some)

Is there any functionality to give what i want in SWT Text control?

Thanks