Hello ,
is there any event emitted by a multiline wxTextCtrl when text is wrapped to new line?
Cheers!
Multiline wxTextCtrl event for new line Topic is solved
-
- Earned a small fee
- Posts: 15
- Joined: Mon May 08, 2017 7:51 pm
- Location: Poland
-
- Earned some good credits
- Posts: 113
- Joined: Sat Sep 24, 2011 9:32 pm
- Location: Poland
Re: Multiline wxTextCtrl event for new line
You can try to catch change text event (EVT_TEXT) and then read current number of lines: textctrlYourTextCtrl->GetNumberOfLines();
and compare new number of lines with prevoius one (if it has been increased). Regards, Jarek
and compare new number of lines with prevoius one (if it has been increased). Regards, Jarek
-
- Earned a small fee
- Posts: 15
- Joined: Mon May 08, 2017 7:51 pm
- Location: Poland
Re: Multiline wxTextCtrl event for new line
That was the solution which I was initially trying out, so your answer assured me that this is correct way of solving my problem. Thanks .