Handling wxKeyEvent in another wxStyledTextCtrl

Eran Ifrah <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
 Hello,

I have a small question:
I have a custom control which consists of 2 wxStyledTextCtrl (laid out 
vertically)

My end goal: when a user types a character inside the top wxStyledTextCtrl, 
I want it to be processed by the bottom wxStyledTextCtrl.

e.g. 

If a user hit the `a` character while the focus is in the top 
wxStyledTextCtrl, I want:

- The focus is shifted to the bottom wxStyledTextCtrl
- The char `a` is printed in the bottom wxStyledTextCtrl

Can this be achieved?
(I tried various solutions, none seemed to work. For example: bind 
wxEVT_CHAR_HOOK and in the top wxSTC and then setting the focus to the 
bottom followed by calling `ProcessEvent` in the lower wxSTC

Any ideas what can be done?

Thanks,
Eran

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/3d95c24d-b1ef-43cd-bbc6-89bbb573f4efn%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.