[wxruby-users] wxComboBox and wxTE_PROCESS_ENTER

Alex Fenton alex at pressure.to
Sun Nov 30 12:06:02 EST 2008


Fabio Petrucci wrote:
>
>  Wx::TE_PROCESS_ENTER can be set programmatically by 
> window#toggle_window_style(Wx::TE_PROCESS_ENTER)
>
> ...now it works, but enabling this flag, the widget loose TAB controls 
> (TAB / SHIFT+TAB)

The fact that setting this style when the control is created suggests to 
me that it's not really meant  to work like that, and I don't understand 
what you're trying to do here. Why do you want a ComboBox that processes 
ENTER?

> cb = Wx::ComboBox.new(self, 500, "default value", 
> Wx::Point.new(90,50), Wx::DEFAULT_SIZE,
>                                 sampleList, 
> Wx::CB_DROPDOWN|Wx::TE_PROCESS_ENTER)
>
> i get the enter event but no tabbing is possible.
>
> Is it a bug?

I don't know. I expect if the control is told to consume ENTER, it also 
consumes TAB.

alex


More information about the wxruby-users mailing list