[Gtk2] GTK2 Combobox Question

Funky Beast funkybeast at pacific.net.sg
Tue Mar 18 05:51:28 CET 2008


Andrew Haines wrote:
> Funky Beast wrote:
>   
>> Hi,
>>
>> Just out of curiosity, why is GTK2 Combobox's list a Menu instead of a
>> Listbox?
>>
>> Thank you for enlightening,
>> Funky Beast
>>
>>
>>     
>
> It's just a change of the gtk2 widget itself. It also is changable
> depending on your theme afaik.
>
> >From the gtk2 docs:
>
> A GtkComboBox is a widget that allows the user to choose from a list of
> valid choices. The GtkComboBox displays the selected choice. When
> activated, the GtkComboBox displays a popup which allows the user to
> make a new choice. The style in which the selected value is displayed,
> and the style of the popup is determined by the current theme. It may be
> similar to a GtkOptionMenu, or similar to a Windows-style combo box.
>
> Andrew
> _______________________________________________
> Gtk2 mailing list
> Gtk2 at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/gtk2
>
>   

Thank you very much, Andrew.
I was about to create a custom made combobox.from scratch.
Now if i want the combobox with a listbox, i'll just have to add the
following line into the rc file.

GtkComboBox::appears-as-list = 1

Regards,
Funky Beast



More information about the Gtk2 mailing list