How to call a function when pressing enter in the textctrl Topic is solved
How to call a function when pressing enter in the textctrl
I want to call a function when I presses enter in the textcrtl, there should be a function called "onenterpress...", but I can't find this function. Can anyone teach me how to do it?
-
- Super wx Problem Solver
- Posts: 469
- Joined: Tue Jun 20, 2006 6:47 pm
- Contact:
Re: How to call a function when pressing enter in the textctrl
Create the control with a style including wxTE_PROCESS_ENTER and then handle the wxEVT_TEXT_ENTER event.
Re: How to call a function when pressing enter in the textctrl
Thanks for replying. I read the class reference and it's helpful. I solve the problem by connecting the function and the event, that is what the handling means right?New Pagodi wrote:Create the control with a style including wxTE_PROCESS_ENTER and then handle the wxEVT_TEXT_ENTER event.
Thanks.