GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sun Oct 26, 2014 8:27 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Current Cursor Position
PostPosted: Mon Mar 03, 2008 6:34 pm 
Offline
Familiar Face

Joined: Mon Feb 11, 2008 12:28 pm
Posts: 15
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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 03, 2008 7:18 pm 
Offline
Familiar Face

Joined: Mon Feb 11, 2008 12:28 pm
Posts: 15
its ok i got it. i used:

gtk_text_iter_get_offset()


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group