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 

question on scrolled window: Maximize events/Resize events

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



Joined: 18 Feb 2007
Posts: 2

PostPosted: Sun Feb 18, 2007 3:11 pm    Post subject: question on scrolled window: Maximize events/Resize events Reply with quote

Hi,

I've got 2 scrolled windows packed in a hbox (a diff tool kinda 2 panel view),
and i want the 2 scrolled windows to resize when the window
is resized to always occupy half the window-width.

i've tried setting widget sizes on window-state-event signal but that
doesn't work for 'resizing'.

Is there some setting i can use to
enable all packed-widgets in the container to resize, when main window is
resized ????

TIA
Back to top
openldev
Never Seen the Sunlight


Joined: 21 Sep 2005
Posts: 386
Location: Fairfax, Virginia

PostPosted: Sun Feb 18, 2007 5:06 pm    Post subject: Reply with quote

If you pack both scrolled windows with gtk_box_pack_start() and set all expand and fill settings to TRUE, they should automatically both take up half of the space. As for catching the window resize, connect your GtkHBox to configure-event. This will catch when the box is resized if the previous packing solution doesn't work.
Back to top
windwisp



Joined: 18 Feb 2007
Posts: 2

PostPosted: Mon Feb 19, 2007 7:11 am    Post subject: Reply with quote

thanks, it worked !
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