GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Aug 22, 2014 9:51 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: question on scrolled window: Maximize events/Resize events
PostPosted: Sun Feb 18, 2007 3:11 pm 
Offline

Joined: Sun Feb 18, 2007 3:05 pm
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 18, 2007 5:06 pm 
Offline
Never Seen the Sunlight

Joined: Wed Sep 21, 2005 3:07 am
Posts: 384
Location: Fairfax, Virginia
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.

_________________
Andrew Krause

Foundations of GTK+ Development: Buy now for only $31.49!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 19, 2007 7:11 am 
Offline

Joined: Sun Feb 18, 2007 3:05 pm
Posts: 2
thanks, it worked !


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group