If you only need one line you may be able to fake it.
Just center the editbox and grow it as more characters are added (OnTextChanged).
You can get the necessary width with the help of a hidden label and GetTextWidth.
In order to make clicking the textbox work like usual, just add a click handler to the background and let it give focus to the editbox via the TakeFocus method.
|