Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / gtk2 / 2008-02

GTK2 Combobox Question

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andrew Haines
to Funky Beast
Funky Beast wrote 9 lines
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

Reply by email

Funky Beast
to Andrew Haines
Andrew Haines wrote 32 lines
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 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

Reply by email