Re: Dynamically filled combo box

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Igor,

On 19 October 2015 at 17:45, Igor Korot <ikorot01@xxxxxxxxx> wrote:
> On Windows I have an ability to create a dynamically filled combobox.
> I.e. I can catch a dropdown event (message), where I can remove all
> items from the list
> and insert a new string to be displayed. Then on the popup event
> (message) I can remove everything and depending whether there is a
> selection or not, add the appropriate string.
>
> Is it possible to do the same with GTK+? Either with 2 or 3?

Sure, in gtk2, try:

https://developer.gnome.org/gtk2/stable/GtkComboBoxText.html#gtk-combo-box-text-append-text

Same thing, though a little fancier, in gtk3:

https://developer.gnome.org/gtk3/stable/GtkComboBoxText.html#gtk-combo-box-text-append-text

John
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list



[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux