Actually I think this is a bug on Windows. Mac OSX displays the first
item correctly, not sure about Linux.
This is one of the bug reports that I just haven't gotten around to
emailing to the list yet. Will soon.
DZ
On Oct 29, 2008, at 8:51 AM, François Vaux wrote:
Hi there,
I'm currently developing a little game which uses a ListBox at some
point, and I've got a suggestion for them:
When you create a ListBox, the default choice is empty, which is
weird to me.
I think Shoes should automatically choose the first element from the
:items parameter without having to explicitely use the :choose
parameter.
If you don't know what items you pass to the ListBox (think about
retrieving items from a file), writing
list_box :items => some_items, :choose => some_items[0]
is boring. Even more if you have to make a collect on the array of
items you pass !
Or maybe having a :first option used like list_box :items =>
some_items, :choose => :first
Any opinion ?
François