Dear all, is there a way to change widget focus with enter key instead of tab Regards Hendra -- Suka linux? Kunjungi blog saya http://penguinroad.blogspot.com
Fabio Petrucci
2010-Sep-17 09:31 UTC
[wxruby-users] change widget focus with enter instead of tab
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.
On Fri, Sep 17, 2010 at 9:55 AM, hendra kusuma <penguinroad at
gmail.com>wrote:
> Dear all,
>
> is there a way to change widget focus with enter key instead of tab
>
> Regards
> Hendra
>
> --
> Suka linux?
> Kunjungi blog saya http://penguinroad.blogspot.com
> _______________________________________________
> wxruby-users mailing list
> wxruby-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wxruby-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/wxruby-users/attachments/20100917/808c3e85/attachment.html>
hendra kusuma
2010-Sep-18 01:34 UTC
[wxruby-users] change widget focus with enter instead of tab
very helpful thank you On Fri, Sep 17, 2010 at 5:31 PM, Fabio Petrucci <fabio.petrucci at gmail.com>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. > > On Fri, Sep 17, 2010 at 9:55 AM, hendra kusuma <penguinroad at gmail.com>wrote: > >> Dear all, >> >> is there a way to change widget focus with enter key instead of tab >> >> Regards >> Hendra >> >> -- >> Suka linux? >> Kunjungi blog saya http://penguinroad.blogspot.com >> _______________________________________________ >> wxruby-users mailing list >> wxruby-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/wxruby-users >> > > > _______________________________________________ > 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/20100918/39e49ed6/attachment.html>
Tony Meier
2010-Sep-19 17:21 UTC
[wxruby-users] change widget focus with enter instead of tab
Fabio Petrucci 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 -- Posted via http://www.ruby-forum.com/.
Fabio Petrucci
2010-Sep-20 07:29 UTC
[wxruby-users] change widget focus with enter instead of tab
On Sun, Sep 19, 2010 at 7:21 PM, Tony Meier <lists at ruby-forum.com> wrote:> Fabio Petrucci 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 > -- >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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20100920/610784a7/attachment.html>