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 

Can we remove Scroll bars from GtkScrolledWindow

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


Joined: 27 Jul 2009
Posts: 93

PostPosted: Wed Mar 17, 2010 10:50 am    Post subject: Can we remove Scroll bars from GtkScrolledWindow Reply with quote

Is it possible to remove visible scroll bar from GtkScrolledWindow so that we can have just a scrolled window with out scrolled bar on Right side of the window.
Back to top
tadeboro
Never Seen the Sunlight


Joined: 23 Jul 2008
Posts: 2114
Location: Slovenia

PostPosted: Wed Mar 17, 2010 1:00 pm    Post subject: Reply with quote

Hi.

See gtk_scrolled_window_set_policy() function.

Tadej
Back to top
pradeep
GTK+ Geek


Joined: 27 Jul 2009
Posts: 93

PostPosted: Wed Mar 17, 2010 1:59 pm    Post subject: Reply with quote

hi,

when I use policy GTK_POLICY_NEVER it hides the scroll bars but it does not scroll contains, I don't want to display scroll bars but I want scrolling contains. how do i archive it?


Thanks.
Back to top
Saniat
Familiar Face


Joined: 24 Dec 2009
Posts: 23

PostPosted: Thu Mar 18, 2010 3:57 am    Post subject: Reply with quote

Hi,

I think not to use scroll window can solve your problem.just use only

Code: (C)
1
2
GtkWidget *window;
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);


and add your another widget component into this window.

Saniat
Back to top
pradeep
GTK+ Geek


Joined: 27 Jul 2009
Posts: 93

PostPosted: Thu Mar 18, 2010 4:47 am    Post subject: Reply with quote

@tadeboro i tried
gtk_widget_hide(gtk_scrolled_window_get_vscrollbar(GTK_SCROLLED_WINDOW(scrolled_window)));

but it does not work, what is the reason for this?
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