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
<lists at ruby-forum.com>wrote:
> 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?
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> wxruby-users mailing list
> wxruby-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wxruby-users
>
--
Suka linux?
Kunjungi blog saya http://penguinroad.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/wxruby-users/attachments/20100205/cde0bfad/attachment.html>