[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
|
- From: Nuno <nuno.esculcas@xxxxxxxxx>
- Date: Tue, 13 May 2008 15:43:54 +0100
- Newsgroups: eclipse.platform.swt
- Organization: EclipseCorner
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4
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