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 Dec 21, 2014 8:53 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Scroll window not auto scrolling
PostPosted: Mon Feb 27, 2012 5:00 am 
Offline

Joined: Mon Feb 27, 2012 4:45 am
Posts: 3
Hai,
I have a code where treeview is added to a scrollwindow. When the list is iterated beyond the veritical screen i want the scrollwindoe to automatically scroll too. But this is not happening. Can anyone suggest a means for auto scroll?


Top
 Profile  
 
 Post subject: Re: Scroll window not auto scrolling
PostPosted: Mon Feb 27, 2012 6:38 am 
Offline
GTK+ Geek

Joined: Fri Sep 04, 2009 6:53 am
Posts: 68
if you have an iter you can get the path by using gtk_tree_model_get_path

http://developer.gnome.org/gtk3/stable/ ... l-get-path

If you have the path you can scroll to the path by using gtk_tree_view_scroll_cell

http://developer.gnome.org/gtk3/stable/ ... ll-to-cell


Top
 Profile  
 
 Post subject: Re: Scroll window not auto scrolling
PostPosted: Mon Feb 27, 2012 7:06 am 
Offline

Joined: Mon Feb 27, 2012 4:45 am
Posts: 3
Hai, Thanks for your response. Actually traversing the treeView is not a problem, The iteration moves but the window doesnot scroll. Can you please help on this?


Top
 Profile  
 
 Post subject: Re: Scroll window not auto scrolling
PostPosted: Mon Feb 27, 2012 10:50 am 
Offline
Never Seen the Sunlight

Joined: Thu Mar 24, 2011 2:10 pm
Posts: 328
Location: Sydney, Australia
scrollbars have adjustments which can be obtained and adjusted with gtk_adjustment_set_value or more simply by casting to a range and using gtk_range_set_value


Top
 Profile  
 
 Post subject: Re: Scroll window not auto scrolling
PostPosted: Mon Feb 27, 2012 11:22 am 
Offline

Joined: Mon Feb 27, 2012 4:45 am
Posts: 3
Hai,

Can someone point me to an example for using this function as mentioned above?


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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