GTK+ Forums Forum Index GTK+ Forums
Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Current Cursor Position

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
angel face
Familiar Face


Joined: 11 Feb 2008
Posts: 15

PostPosted: Mon Mar 03, 2008 6:34 pm    Post subject: Current Cursor Position Reply with quote

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

PostPosted: Mon Mar 03, 2008 7:18 pm    Post subject: Reply with quote

its ok i got it. i used:

gtk_text_iter_get_offset()
Back to top
Display posts from previous:   
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group
CodeBB 1.0 Beta 2
Protected by Anti-Spam ACP