Ok i'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't reconize the mapping constant Wx::NavigationKeyEvent::IsForward<br>
<br>what about if i'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"><<a href="mailto:fabio.petrucci@gmail.com">fabio.petrucci@gmail.com</a>></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 & 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'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"><<a href="mailto:mario@ruby-im.net" target="_blank">mario@ruby-im.net</a>></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. </blockquote></div><div><br>right.<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;">
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. </blockquote></div><div><br>Basically i use Enter to validate user input<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;">
The best thing to do, is to monitor evt_keypress</blockquote></div><div><br>Is ComboBox able to trigger keypress event?? <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"><<a href="mailto:alex@pressure.to" target="_blank">alex@pressure.to</a>></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'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?<div>
</div></div></blockquote></div></div></div></blockquote><div><br>The above user inserts hundreds of products a day and he knows exactly what 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'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>