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

Fulvio Senore <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Il 08/06/2024 16:03, Vadim Zeitlin ha scritto:
> 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
> 

Thank you for your answer. As usual, when there is no way to do a thing 
in a certain way, this means that there are better ways to do it.

After some time I realized that I could use the EVT_TEXT event to solve 
my problem.

Fulvio

-- 
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/859e62b6-4a55-4fce-b143-0c04a568c80c%40fsoft.it.
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.