Ok i&#39;ve found my way:<br><br>Now my ComboBox consumes ENTER and TAB keys :)<br><br>One more question:<br><br>I use window#navigate() to simulate TAB.<br>calling it by default param is fine even if it doesn&#39;t reconize the mapping constant Wx::NavigationKeyEvent::IsForward<br>
<br>what about if i&#39;d like to navigate backward?<br><br>i supposed a constant like Wx::NavigationKeyEvent::IsBackward<br><br>but i get an uninitialized constant Wxruby2::Wx::NavigationKeyEvent::IsBackward<br><br>any suggestion?<br>
<br>regards.<br><br>bio<br><br><br><div class="gmail_quote">On Mon, Dec 1, 2008 at 12:29 AM, Fabio Petrucci <span dir="ltr">&lt;<a href="mailto:fabio.petrucci@gmail.com">fabio.petrucci@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Alex &amp; Mario,<br><br>i am working on an invoice form, where the user should be able to fill fields using mainly tab, numeric keys and confirm by enter on every field he&#39;s working on. The basic reason for that, is the user should only type on the keyboard avoiding as much as possible using mouse for speed reason.<br>

<br><br><div class="gmail_quote"><div class="Ih2E3d">On Sun, Nov 30, 2008 at 7:11 PM, Mario Steele <span dir="ltr">&lt;<a href="mailto:mario@ruby-im.net" target="_blank">mario@ruby-im.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

The problem lies in the fact, that Wx::ComboBox has a Drop down, and a Text Edit in it.&nbsp; </blockquote></div><div><br>right.<br>&nbsp;<br></div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

I believe that Fabio wants the Enter event, so that he can add what a person enters into the Drop Down, if I am understanding correctly.&nbsp; </blockquote></div><div><br>Basically i use Enter to validate user input<br>&nbsp;</div>
<div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The best thing to do, is to monitor evt_keypress</blockquote></div><div><br>Is ComboBox able to trigger keypress event??&nbsp;<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div><div class="gmail_quote"><div class="Ih2E3d">On Sun, Nov 30, 2008 at 11:06 AM, Alex Fenton <span dir="ltr">&lt;<a href="mailto:alex@pressure.to" target="_blank">alex@pressure.to</a>&gt;</span> wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Fabio Petrucc<br>
</div><div class="Ih2E3d">
The fact that setting this style when the control is created suggests to me that it&#39;s not really meant &nbsp;to work like that, and I don&#39;t understand what you&#39;re trying to do here. Why do you want a ComboBox that processes ENTER?<div>


</div></div></blockquote></div></div></div></blockquote><div><br>The above user inserts hundreds of products a day and he knows exactly what&nbsp; vat code to use for that kind of product, without having to choose from a dropdown menu. The ENTER is to confirm what he typed.<br>

<br>ComboBox let you do that quite well standardizing behaviour between fields.<br><br></div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><br></div>
I don&#39;t know. I expect if the control is told to consume ENTER, it also consumes TAB.<br>
<br>
</blockquote></div></div></div></blockquote></div><div><br>Unfortunately, on ComboBox, if you enable enter you loose the opportunity to use the tab<br><br>thank you both.<br><br>bio.<br></div></div><br>
</blockquote></div><br>