[Gtk-sharp-list] ComboBox newbie

sami.huttu at mtt.fi sami.huttu at mtt.fi
Thu Mar 23 11:41:55 EST 2006


I fill my combo like this:

ComboBox combo = ComboBox.NewText ();
for (int i = 0; i < 5; i ++)
    combo.AppendText ("item " + i);

The problem is how to set some item (eg. "item 1") active as default on
application start up?

There is method combo.SetActiveIter(TreeIter), but how to convert "item 1"
to TreeIter struct?

The second question is how to set tab indexes so that my combo is focused
on start up?

Thank you!

Sami




More information about the Gtk-sharp-list mailing list