Wx::Choice in Windows

Hi!
While testing my wxRuby app on Windows, I found that Wx::Choice behaves
differently under Linux and Windows. For this line of code

@tpf_choice = Wx::Choice.new(self, :choices => %w(1 8 16 32 64 256))

in Linux, the first choice ‘1’ is pre-selected, while in Windows nothing
is selected until I open the list and select a value from it. After
that, blank value cannot be selected.
Is it a bug?

I suggest you add
set_selection
to make sure that 1st value is pre-selected
I don’t know about you, but I would rather play save
when it comes to programming, especially cross platform
and since I am not the developer of this great library (just a user)
I cannot help you any otherway

On Fri, Feb 5, 2010 at 12:57 AM, Valentine Bichkovsky

On 04/02/2010 17:57, Valentine Bichkovsky wrote:

Thanks for the report. It’s always been this way, and is so too in
wxWidgets. I don’t think it’s a bug but rather a difference in the way
the native control works on each platform. But, yes, it can be
surprising.

cheers
alex