0

有人知道是否可以制作一个允许多个条目选择的 GtkCombo?在肯定的情况下我该怎么做?

4

1 回答 1

1

No a GtkCombo doesn't allow it. Btw, it's been deprecated and you should use GtkComboBox instead. The widget is meant to display only one selected item at a time.

What you want to look into is using a GtkTreeView to show the items in your list and allow for multiple selection. A simple tutorial is available here. You'll need to get the GtkTreeSelection and set the selection mode accordingly.

于 2010-05-14T16:24:10.213 回答