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 

regarding gtkscrolled window

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
cnu_sree
GTK+ Geek


Joined: 06 Oct 2006
Posts: 57

PostPosted: Fri Feb 02, 2007 11:57 am    Post subject: regarding gtkscrolled window Reply with quote

iam using gtkscrolled window for clist.
iam adding 20 items to the clist and they all r storing in a file
when i run the application then all the items will be added to the clist.
it all working fine
but scrollbar is not showing.
so iam unable to acces the 20th item how can i solve this problem
thank u,
inadvance
sree
Back to top
openldev
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 387
Location: Fairfax, Virginia

PostPosted: Fri Feb 02, 2007 3:08 pm    Post subject: Reply with quote

First of all GtkCList does not include native scrolling support, so you would have to use gtk_scrolled_window_add_with_viewport(). Secondly, GtkCList is depreciated and should _NOT_ _NOT_ _NOT_ be used in new applications!!!! (exclamation point times infinity). You should be using GtkTreeView, which does include native scrolling support. You can find a tutorial on this widget at http://scentric.net/tutorial/
Back to top
cnu_sree
GTK+ Geek


Joined: 06 Oct 2006
Posts: 57

PostPosted: Fri Feb 09, 2007 7:33 am    Post subject: Reply with quote

same problem with gtktexttview.
sometimes scrollwindow is not showing
can anyone tell me y it happen.
and also show me the solution
thank u, inadvance
sree
Back to top
openldev
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 387
Location: Fairfax, Virginia

PostPosted: Fri Feb 09, 2007 2:49 pm    Post subject: Reply with quote

Are you adding it to the scrolled window with gtk_container_add() or gtk_scrolled_window_add_with_viewport(). You must use the first function with widgets that have native scrolling support such as GtkTreeView and GtkTextView.

Also, you might want to try setting your scrollbar policies with gtk_scrolled_window_set_policy(). If neither of these works, how about posting some code so I can see what you are doing?
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