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">On Sun, Nov 30, 2008 at 7:11 PM, Mario Steele <span dir="ltr"><<a href="mailto:mario@ruby-im.net">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><br>right.<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;">
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><br>Basically i use Enter to validate user input<br> </div><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><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 class="Wj3C7c"><div class="gmail_quote">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>
<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>
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></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><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div class="Wj3C7c"><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><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>