vendredi 13 mars 2015

Get caret index on current line?

Looked in various places but no where achieves what I want for this. I am making a textbox that will act similar to a console, in that I don't want to be able to alter previous text.


At the moment, I have disabled the ability to move the caret to a previous line by moving it to the end of the text whenever the user clicks the textbox. Now my issue is that you can still use the backspace key to get onto a previous line!


I do not want to completely disable the backspace key, but I don't want to be able to change the line number which allows the user to delete anything previously written...


How can I achieve this?


Aucun commentaire:

Enregistrer un commentaire