 |
GTK+ Forums Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
|
|
|
| Author |
Message |
|
|
angel face Familiar Face
Joined: 11 Feb 2008 Posts: 15
|
Posted: Mon Mar 03, 2008 6:34 pm Post subject: Current Cursor Position |
|
|
Hey guys.
Does anyone know how to get the current cursor position of a textview.
I want the position like in the form of a array index.
Example:
"Hello World"
If the cursor is placed before 'W' then the cursor position would be 5.
Thanks |
|
| Back to top |
|
 |
angel face Familiar Face
Joined: 11 Feb 2008 Posts: 15
|
Posted: Mon Mar 03, 2008 7:18 pm Post subject: |
|
|
its ok i got it. i used:
gtk_text_iter_get_offset() |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group CodeBB 1.0 Beta 2
|