From: Dobai-Pataky B. <dp...@gm...> - 2006-09-27 11:48:50
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content=3D"text/html;charset=3DUTF-8" http-equiv=3D"Content-Type"= > </head> <body bgcolor=3D"#ffffff" text=3D"#000000"> okay, got my answer, if anyone interested:<br> i have to attach those buttons with Gtk::FILL|Gtk::EXPAND<br> <br> <br> Dobai-Pataky Balint wrote: <blockquote cite=3D"mid...@gm..." type=3D"cite">Hi, <br> <br> i have a Gtk::Table(5,3), with buttons in it - the keypad. <br> i want thise buttons to be as large as possible, <br> i walked through the documentation on size requisition and allocation, and came to the conclusion that Gtk is concentrating on making widgets as small as possible, which is good generally, but not for me not in this issue. <br> <br> my buttons are as small as they can be, i attached them to the table like this: attach('1',0,1,0,1,Gtk::FILL, Gtk::FILL, 0, 0), so they fill in the table's cell, i like this, <br> the table is defined as new(5,3,true) <br> no matter if i table.set_size_request(700.900), i get the table big enough, but not the buttons. <br> <br> so is there a way i can tell Table=C2=A0 to require Width, and assuming i have created it to be homogeneous, it should divide it's children not just equally, but taking up all the space? <br> <br> since my table has 3 columns, my third button is attached like (widget,2,3,0,1..) , i guess that's correct even if there is no 4th column indexed as 3 in the table(since it starts from 0), so the widget is right - attached to a non existent column. <br> <br> I'd appreciate any suggestion, <br> <br> thanks <br> <br> Balint <br> <br> <pre wrap=3D"">--------------------------------------------------------= ----------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share y= our opinions on IT & business topics through brief surveys -- and earn ca= sh <a class=3D"moz-txt-link-freetext" href=3D"http://www.techsay.com/default= .php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV">http://www.techsay.com= /default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV</a></pr= e> <pre wrap=3D""> <hr size=3D"4" width=3D"90%"> _______________________________________________ ruby-gnome2-devel-en mailing list <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:ruby-gnome2-devel-en= @lists.sourceforge.net">rub...@li...</a> <a class=3D"moz-txt-link-freetext" href=3D"https://lists.sourceforge.net/= lists/listinfo/ruby-gnome2-devel-en">https://lists.sourceforge.net/lists/= listinfo/ruby-gnome2-devel-en</a> </pre> </blockquote> </body> </html> |