I'm trying to make an app to dynamically resize a Gtk.Table, by adding or
removing columns. I've created a method to add columns and it works fine,
but when I want to remove the last columns nothing happens. Here is the
code:

   public void ResizeTable(uint n) {

       main_table.Resize(n,main_table.NRows);

       for(uint i=0;i<n;i++) {
           main_table.Attach(new Label("col["+i+"]"), i, i+1, 0, 1);
       }

       main_table.ShowAll();
   }


Also this code is kind of buggy because it "redraws" the labels in each
column.
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to