Re: Userdefined list in gtk_spin_button ?




hszumovs <hszumovs@cisco.com> writes:

> Hi team,
> is it possible to run gtk_spin_button with a userdefined list instead of a
> simple numeric range ?  

Not in 1.2. (I qualify it, because the development version
of GTK+ does have that capability, so it will appear eventaually)

> Example: I was able to create a spin_button with a range from lets say
> 0 to 19.   I was also able to create a gtk_combo with a userdefined list
> of characterstrings. However, these appear as popdown strings, from
> which one can be selected.  For larger lists I would prefer the way
> how gtk_spin_button works, but couldn't find out how to do that.
>
>   If this is not possible, what is another good way with GTK to let a user
> select a specific string out of a large number of characterstrings ?
> Thanks for any recommendations, Herbert

GtkCombo is generally friendlier on the user, since most people
don't really like clicking arrows lots and lots of times. ;-)
You can also use a GtkOptionMenu which is a slightly different variant
on the theme. (But that is limited by the fact that Gtk menus
don't scroll).

Regards,
                                        Owen



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