GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Sat Oct 25, 2014 8:37 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Changing paned windows based on height and width
PostPosted: Fri Jan 11, 2008 1:00 am 
Offline

Joined: Fri Jan 11, 2008 12:52 am
Posts: 3
I have two widgets (a GtkDrawingArea and a GtkNotebook) both in a paned window. I would like the paned window to go left to right (a HPaned) if the window width is larger than the window height and go up and down (a VPaned) if the window height is larger.

What would be the best way to implement this? Without digging in to far the way I see is to destroy the Paned and create a new one (of the other type) each time the size changes over. But before I get started is there a better way? Is there a way to create a GtkPaned (the base class) and just tell it what orientation to take and be able to switch to the other?

thanks,
-kyle


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

All times are UTC


Who is online

Users browsing this forum: Yahoo [Bot] 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