Re: textControl, Events
Bryan Bulten <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <[email protected]> |
Sorry for the late reply. > And 'ce.String' returns me always all the text in the Textbox. Am i > doing smth wrong? How an i get the last key pressed? I'm still looking into that exception, but to get the last key pressed, use EVT_STC_CHARADDED. The StyledTextEvent.Key property has the code of the character pressed. You can also try using EVT_KEY_UP/EVT_KEY_DOWN. This gives a KeyEvent, for which you can use the KeyEvent.KeyCode to get the character pressed. Also note that this event is fired for all keys(not just characters). Cheers. -- Bryan Bulten http://www.bulten.ca/ http://wxnet.sourceforge.net/
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/14s932WFWIzmzHgRArqkAJ0fTYW86hT5SojX3yl3uTv4avLUmQCghHEk M7+ba9B/gESbrPBvZaOcaEU= =HIcu -----END PGP SIGNATURE-----