Re: How to see the event result from an EVT_CHAR handler

Vadim Zeitlin <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
On Wed, 5 Jun 2024 18:19:55 +0200 Fulvio Senore wrote:

FS> I have an event handler for the EVT_CHAR event. In that event handler I 
FS> call event.Skip() to process the event if the char is an allowed one.
FS> Is there a way to see the resulting content of the control after the 
FS> char is handled, from inside the same event handler?

 No.

FS> For example, if the user presses the '1' key I would like the content of 
FS> the control with the '1' typed by the user.

 The best you can do is to use CallAfter() to execute some code "some time
later".

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
              https://www.tt-solutions.com/
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCZmRktAAKCRAG6kHeT2we
htPqAKCHpK8v+Al+XH9NJ/L+qxPTy3ynsACfevlzRNVl9BJdweZtsTfyL93WlcQ=
=W5F+
-----END PGP SIGNATURE-----
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.