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 

Changing paned windows based on height and width

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



Joined: 11 Jan 2008
Posts: 3

PostPosted: Fri Jan 11, 2008 1:00 am    Post subject: Changing paned windows based on height and width Reply with quote

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