GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Apr 23, 2014 2:30 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: regarding gtkscrolled window
PostPosted: Fri Feb 02, 2007 11:57 am 
Offline
GTK+ Geek

Joined: Fri Oct 06, 2006 6:37 am
Posts: 57
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 02, 2007 3:08 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
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/

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 09, 2007 7:33 am 
Offline
GTK+ Geek

Joined: Fri Oct 06, 2006 6:37 am
Posts: 57
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 09, 2007 2:49 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
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?

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot], Google Adsense [Bot] and 4 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