From: Marco T. <wx...@so...> - 2002-02-15 08:34:21
|
> > in a textctrl i wish to use wxTE_PROCESS_TAB but this doesn't work... > > but wxTE_PROCESS_ENTER works... > > because of this i assume that the mistake is not on my side? > Somewhat: with wxTE_PROCESS_TAB the textctrl generates key events for > TAB presses; hovever if you do not handle the key events ( EVT_CHAR ) > for TAB keys, or Skip() them, this triggers the default behaviour > ( go to next control ). > > HTH > Mattia interesting... i just want the tab to make a tab... if the control isn't in a dialog or in a label this works by default... can you (or someone else) give me an example of how to do this? i have an EVT_CHAR on the textctrl and it captures every key event... what do i have to do now that the chars go to the textctrl? i mean it looks unnecessary to me to capture every pressed key and write it to the textctrl just to don't loose the tab greetings Marco |