My problem is with GTK+-2.0 using C++.
I made a table, which is in a fixed location on my window. It is 7 columns wide, and 6 rows in height.
The table cells are not homogeneous. (table = gtk_table_new (7, 6, false))
I have several GtkEntry's attached to the table, but they are all attached in the same columns, just in different rows. So here is how I attached them.
gtk_table_attach ( GTK_TABLE (table), myentry, 0, 5, 0, 1, GTK_FILL, GTK_FILL, 0, 0);
The function explained
here.
As you can see, the x and y options are set to GTK_FILL to only use the cells allocated to it.
Except for me, it does not do so. No matter how many cells I tell gtk to attach the entries to, it always ends up to be about 2 or 3 cells.
It is only when I change homogeneous parameter in gtk_table_new () to TRUE does it change the width of the entries. But it changes the width of all the other cells to be the same size as the largest cell. Which I don't want.
How do I accomplish having the entries stretch out to take up the EXACT amount of cells I attached it to?
Here is code to one of the entries I made:
Code:
...
fixed[0] = gtk_fixed_new ();
table[0] = gtk_table_new (7, 6, false);
gtk_fixed_put ( GTK_FIXED (fixed[0]), table[0], 300, 10); // positioned at x(300), and y
...
outentry = gtk_entry_new ();
gtk_table_attach ( GTK_TABLE (table[0]), outentry, 0, 6, 5, 6, GTK_FILL, GTK_FILL,
0, 5);
...