scottgarner
9 years agoVisitor
Keyboard/TextEditBox alternative?
I'm trying to provide a mechanism for a user to add/edit more than a trivial amount of text. Using the Keyboard (and hence the TextEditBox) object, if the amount of text exceeds the visible window of the control holding the text, then ellipses are displayed, and the text does not scroll to follow the cursor position. Text that is added using the keyboard does apparently modify the .text value, but since this is happening invisibly, it only creates confusion.
First, is there a way to change this control to behave as one would expect it to? i.e. when the cursor reaches the furthest-right-most bit of the TextEditBox, can the ellipses be disabled, and can the whole line of the text be scrolled to the left while the user is either adding text, or navigating existing text with the directional arrows?
Second, if there is no solution using Keyboard/TextEditBox, what is the alternative? I know there's a way, because I have someone else's channel that uses a text controller with this standard behavior. Is their text control some kind of home-rolled solution they made, and if so, how? I'm not averse to making my own controls, but I don't know how I'd go about cursor navigation through something like a Label object.
First, is there a way to change this control to behave as one would expect it to? i.e. when the cursor reaches the furthest-right-most bit of the TextEditBox, can the ellipses be disabled, and can the whole line of the text be scrolled to the left while the user is either adding text, or navigating existing text with the directional arrows?
Second, if there is no solution using Keyboard/TextEditBox, what is the alternative? I know there's a way, because I have someone else's channel that uses a text controller with this standard behavior. Is their text control some kind of home-rolled solution they made, and if so, how? I'm not averse to making my own controls, but I don't know how I'd go about cursor navigation through something like a Label object.