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 

Gtk::Table sizing difficulty

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



Joined: 25 Sep 2008
Posts: 2

PostPosted: Thu Sep 25, 2008 1:56 pm    Post subject: Gtk::Table sizing difficulty Reply with quote

I have a window containing a Gtk::Table with 2 columns and 3 rows layed out as follows:


____________________________________________
| Gtk::Frame | Gtk::Frame |
| | |
|_______________________|___________________ |
| |
| Gtk::TextView |
| |
|___________________________________________|
| |
| Gtk::HButtonBox |
| |
|___________________________________________|


When the window is resized I want the frames and buttons to remain static but the textview portion to be resized along with the window. At the moment, everything resizes together.

I've tried several different settings for packing and resizing options with no success. I may be better off to replace the table with a combination of Gtk::HBox and Gtk::VBox.

I'm open to suggestions
Thank you
James
Back to top
dreblen
Never Seen the Sunlight


Joined: 14 Jun 2007
Posts: 534
Location: Falun, WI USA

PostPosted: Fri Sep 26, 2008 1:15 am    Post subject: Reply with quote

I think that the formatting of your diagram got messed up by the forum, so it's kind of hard to tell how things are set up.
If you can't get it to work how you want, I'd recommend packing a vbox and then packing successive widgets into the vbox
Back to top
jamesinorlando



Joined: 25 Sep 2008
Posts: 2

PostPosted: Fri Sep 26, 2008 12:31 pm    Post subject: Reply with quote

Yes, the formatting got screwed up. It was a 3 row table with 2 frames in row 1, a Text View in row 2 and a HButtonBox in row three (with the possibility of more items added as I go along).
Back to top
dreblen
Never Seen the Sunlight


Joined: 14 Jun 2007
Posts: 534
Location: Falun, WI USA

PostPosted: Fri Sep 26, 2008 4:03 pm    Post subject: Reply with quote

okay, I'm assuming that you're using gtkmm from your '::' references.
try setting the yoptions
http://gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Table.html#28b6926e68337a51ba29f2b4dd69f087
of the non-textview rows to SHRINK
http://gtkmm.org/docs/gtkmm-2.4/docs/reference/html/group__gtkmmEnums.html#gd0ae047e9bb4f262003dbb94468f5d81
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