View Single Post
05/20/16, 07:30 AM   #4
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,579
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.
  Reply With Quote