Change widget focus with enter instead of tab

Dear all,

is there a way to change widget focus with enter key instead of tab

Regards
Hendra

Set style to text filed that should receive enter event:

text_fied_1.toggle_window_style(Wx::TE_PROCESS_ENTER)

into the panel that contain text_field_1

evt_text_enter(text_field_a) { |evt| text_field_2.set_focus()}

hope this help.

regards,

bio.

very helpful
thank you

Fabio P. wrote:

Set style to text filed that should receive enter event:

text_fied_1.toggle_window_style(Wx::TE_PROCESS_ENTER)
into the panel that contain text_field_1
evt_text_enter(text_field_a) { |evt| text_field_2.set_focus()}

hope this help.

regards,

bio.

is this possible for grid cell editors, too?

Thanks,
Tony

On Sun, Sep 19, 2010 at 7:21 PM, Tony M. [email protected]
wrote:

bio.

is this possible for grid cell editors, too?

Thanks,
Tony

I don’t really know…

You think should check for something like ‘activate’ event and then, if
you
can localize cell grid objects and they respond to ‘set_focus’, it
should
work.

Let us know.

Good luck.

bio.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs