# Help with container

**URL:** <https://www.ruby-forum.com/t/help-with-container/122087>\
**Category:** Ruby-Gnome 2\
**Created:** [December 4, 2007, 3:20pm UTC](https://www.ruby-forum.com/t/help-with-container/122087 "2007-12-04T15:20:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![di3go](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9a28c/32.png) [@di3go](https://www.ruby-forum.com/u/di3go)\
**Post date:** [December 4, 2007, 3:20pm UTC](https://www.ruby-forum.com/t/help-with-container/122087/1 "2007-12-04T15:20:09Z")

</div>

Hi guys i’m new in ruby gui programing and i need help to do a thing, i  
want the effect like the above app ( glade ), i want to know how i can  
make the buttons going up and down after change the windows size, im not  
using glade to make the gui, im wrinting the code, i want learn 🙂

[http://img258.imageshack.us/img258/192/capturadatelazh5.png](http://img258.imageshack.us/img258/192/capturadatelazh5.png)  
[http://img258.imageshack.us/img258/9496/capturadatela1gi3.png](http://img258.imageshack.us/img258/9496/capturadatela1gi3.png)

thx everyone!

---

<div class="post-metadata">

**Author:** ![di3go](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9a28c/32.png) [@di3go](https://www.ruby-forum.com/u/di3go)\
**Post date:** [December 4, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/help-with-container/122087/2 "2007-12-04T15:29:09Z")

</div>

[http://img204.imageshack.us/img204/4229/screenshot1ok9.png](http://img204.imageshack.us/img204/4229/screenshot1ok9.png)

This is how the app is now, but i did this with tables and i want the  
buttons to be dynamic inserted inside the frame.  
This program is to manage a church

thx!

---

<div class="post-metadata">

**Author:** ![di3go](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9a28c/32.png) [@di3go](https://www.ruby-forum.com/u/di3go)\
**Post date:** [December 7, 2007, 10:01am UTC](https://www.ruby-forum.com/t/help-with-container/122087/3 "2007-12-07T10:01:41Z")

</div>

No one? =’(

---

<div class="post-metadata">

**Author:** ![di3go](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9a28c/32.png) [@di3go](https://www.ruby-forum.com/u/di3go)\
**Post date:** [December 7, 2007, 10:01am UTC](https://www.ruby-forum.com/t/help-with-container/122087/4 "2007-12-07T10:01:29Z")

</div>

Diego B. wrote:

> [http://img204.imageshack.us/img204/4229/screenshot1ok9.png](http://img204.imageshack.us/img204/4229/screenshot1ok9.png)
> 
> This is how the app is now, but i did this with tables and i want the  
> buttons to be dynamic inserted inside the frame.  
> This program is to manage a church
> 
> thx!

---

<div class="post-metadata">

**Author:** ![di3go](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9a28c/32.png) [@di3go](https://www.ruby-forum.com/u/di3go)\
**Post date:** [December 11, 2007, 2:54pm UTC](https://www.ruby-forum.com/t/help-with-container/122087/5 "2007-12-11T14:54:26Z")

</div>

> No one? =’(

Sorry not me. I tend to avoid glade whenever possible as  
I have a bad relationship with XML 🙂

---

<div class="post-metadata">

**Author:** ![di3go](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9a28c/32.png) [@di3go](https://www.ruby-forum.com/u/di3go)\
**Post date:** [December 12, 2007, 6:45pm UTC](https://www.ruby-forum.com/t/help-with-container/122087/6 "2007-12-12T18:45:04Z")

</div>

Just a raw guess with 1min google search:  
What about this?  
[http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk\_1\_1IconView.html](http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1IconView.html)

On Dec 7, 2007 10:01 AM, Diego B.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> just about anything Open Source.  
> [http://sourceforge.net/services/buy/index.php](http://sourceforge.net/services/buy/index.php)
> 
> * * *
> 
> ruby-gnome2-devel-en mailing list  
> removed\_email\_address@domain.invalid  
> [ruby-gnome2-devel-en List Signup and Options](https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en)

–  
±[Gergely K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) ]------------------+  
| |  
| Mobile:(+36 20)356 9656 |  
| |  
± “Olyan lángész vagyok, hogy poroltóval kellene járnom!” -+

---

<div class="post-metadata">

**Author:** ![di3go](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9a28c/32.png) [@di3go](https://www.ruby-forum.com/u/di3go)\
**Post date:** [December 11, 2007, 5:55pm UTC](https://www.ruby-forum.com/t/help-with-container/122087/7 "2007-12-11T17:55:53Z")

</div>

Marc H. wrote:

> > No one? =’(
> 
> Sorry not me. I tend to avoid glade whenever possible as  
> I have a bad relationship with XML 🙂

yea, now, me too \>.\<  
i’m making the whole program without glade, but the main question still  
there, how can i do that effect? now, without program glade 🙂

---

<div class="post-metadata">

**Author:** ![di3go](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9a28c/32.png) [@di3go](https://www.ruby-forum.com/u/di3go)\
**Post date:** [December 12, 2007, 7:40pm UTC](https://www.ruby-forum.com/t/help-with-container/122087/8 "2007-12-12T19:40:14Z")

</div>

No, in Gtk::IconView you only can include images.

Afaik glade and gimp use special hand crafted widgets for this. This  
widgets are not included in Gtk.

The simplest would be to pack your buttons into a Gtk::Table or a  
Gtk::Layout and then follow the configure event. Then rearange the items  
if the padding on the right goes under or over a minimum value.

Hth  
detlef

Am Montag, den 10.12.2007, 17:50 +0100 schrieb KONTRA, Gergely:
