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 

scrollbar problem

 
Post new topic   Reply to topic    GTK+ Forums Forum Index -> GTK+ Programming
Author Message
ramesh
Familiar Face


Joined: 16 Nov 2006
Posts: 40

PostPosted: Fri Mar 30, 2007 11:43 am    Post subject: scrollbar problem Reply with quote

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

PostPosted: Fri Mar 30, 2007 1:39 pm    Post subject: Reply with quote

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

PostPosted: Sat Mar 31, 2007 3:38 am    Post subject: thank you for quick replay Reply with quote

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

PostPosted: Sat Mar 31, 2007 2:45 pm    Post subject: Reply with quote

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
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