|
|
| Author |
Message |
|
|
ramesh Familiar Face
Joined: 16 Nov 2006 Posts: 40
|
Posted: Fri Mar 30, 2007 11:43 am Post subject: scrollbar problem |
|
|
hi all
i am using clist
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (ScrolledWindow), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
i used this for scrollbar.
i am adding some data in to clist
but scrollbar is sometimes showing,
and some times not.
the scrollbar should be automatic.
is there any example for this.
how can i do this
please help me
thank you |
|
| Back to top |
|
 |
openldev Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 372 Location: State College, Pennsylvania
|
Posted: Fri Mar 30, 2007 1:39 pm Post subject: |
|
|
GTK_POLICY_AUTOMATIC means that the scrollbar is only shown when it is needed. If you want it to always show, use GTK_POLICY_ALWAYS.
Also, are you using GTK+ 1.2? GtkCList is depreciated in GTK+ 2.0+ in favor of GtkTreeView. |
|
| Back to top |
|
 |
ramesh Familiar Face
Joined: 16 Nov 2006 Posts: 40
|
Posted: Sat Mar 31, 2007 3:38 am Post subject: thank you for quick replay |
|
|
| openldev wrote: | GTK_POLICY_AUTOMATIC means that the scrollbar is only shown when it is needed. If you want it to always show, use GTK_POLICY_ALWAYS.
Also, are you using GTK+ 1.2? GtkCList is depreciated in GTK+ 2.0+ in favor of GtkTreeView. |
yeah.
some times it is not showing.
i dont need always.
help me
thank you in advance |
|
| Back to top |
|
 |
openldev Never Seen the Sunlight
Joined: 21 Sep 2005 Posts: 372 Location: State College, Pennsylvania
|
Posted: Sat Mar 31, 2007 2:45 pm Post subject: |
|
|
| If you are using AUTOMATIC, the scrollbar will hide itself when it is not needed and show itself when it is. However, if you are certain that it is not doing this at the correct time, you should try adding it with gtk_scrolled_window_add_with_viewport(). It might just be a problem with the GtkCList widget. Although, unless you are using GTK+ 1.x, I would very much encourage you to use GtkTreeView. GtkCList is depreciated and if you ask anyone for help anywhere, that will be their response. |
|
| Back to top |
|
 |
|