Forum: wxRuby Wx::Choice in Windows

Posted by Valentine Bichkovsky (valentin)
on 2010-02-04 18:57
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 by hendra kusuma (Guest)
on 2010-02-05 06:56
(Received via mailing list)
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
Posted by Alex Fenton (Guest)
on 2010-02-05 23:38
(Received via mailing list)
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.