[wxruby-users] wxComboBox and wxTE_PROCESS_ENTER

Alex Fenton alex at pressure.to
Mon Dec 1 12:54:56 EST 2008


Fabio Petrucci wrote:
> Ok i've found my way:
>
> Now my ComboBox consumes ENTER and TAB keys :)
>
> One more question:
>
> I use window#navigate() to simulate TAB.
> calling it by default param is fine even if it doesn't reconize the 
> mapping constant Wx::NavigationKeyEvent::IsForward
>
> what about if i'd like to navigate backward?
>
> i supposed a constant like Wx::NavigationKeyEvent::IsBackward
>
> but i get an uninitialized constant 
> Wxruby2::Wx::NavigationKeyEvent::IsBackward

Try using the following values to indicate backwards and forwards to 
Window#navigate (never even knew about that method until today...)

IsBackward = 0
IsForward = 1

alex



More information about the wxruby-users mailing list