November 16th, 2004, 05:29 PM
How to Use EVT_CHAR?
I am working with seperate text boxes using Boa Constructor and it will not let me tab through the text boxes. I was reading in the docs that you need to use style=wxTE_PROCESS_TAB and then associate it with EVT_CHAR. But I am unclear on what I need to put in the code to actually make it tab through the text boxes.
I have this in the code right now, just not sure where to go from here. I know the event.Skip() is just a default so Boa does not error out when it gets to it, but how do I set this up to handle the tab key to move to the next TextCtrl box?
def OnTextCtrl1Char(self, event):
November 17th, 2004, 06:36 PM
Figured it out, it had nothing to do with the EVT_CHAR at all. In Boa I needed to open the Designer and set the styles=wxTAB_TRAVERSAL in the initial parent window first before it could be used in the text fields in the child windows.