Hi Kiet, Since you've sent a copy to me, and not just to the gtkmm-list, you seem to think that I can answer your questions. I'm sorry, but I can't. I can just give you some wild guesses how to proceed. Even if my guesses are correct, they are no quick fixes. 1. Use the container Gtk::Fixed. I have never used it myself, but I suppose it will not recalculate all sizes and locations just because one widget wants to resize itself. But Gtk::Fixed has many drawbacks, as stated in its description. 2. Derive a new class from one of the container classes. class MyTable : public Gtk::Table // or whatever container you use for all your buttons. Override some of the virtual functions that are used for resizing, especially perhaps on_size_allocate(). See http://developer.gnome.org/gtkmm-tutorial/stable/sec-custom-containers.html.en When you want to resize normally, call the base class function (e.g. Gtk::Table::on_size_allocate()), otherwise make sure no reallocations are made. I don't know how to do this in detail. Kjell 2012-01-09 00:46, kiet tran skrev: I really need help on this if possible could I get a reply thanks. |