#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    17
    Rep Power
    0

    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?

    Code:
        
    def OnTextCtrl1Char(self, event):
            event.Skip()

    Thanks
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    17
    Rep Power
    0
    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.

IMN logo majestic logo threadwatch logo seochat tools logo