|
|
| Author |
Message |
|
|
cnu_sree GTK+ Geek
Joined: 06 Oct 2006 Posts: 57
|
Posted: Fri Feb 02, 2007 11:57 am Post subject: regarding gtkscrolled window |
|
|
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
|
Posted: Fri Feb 02, 2007 3:08 pm Post subject: |
|
|
| 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
|
Posted: Fri Feb 09, 2007 7:33 am Post subject: |
|
|
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
|
Posted: Fri Feb 09, 2007 2:49 pm Post subject: |
|
|
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 |
|
 |
|