This project is read-only.

[Fixed]Odd issue with text box and tab

May 24, 2011 at 1:01 AM
Edited May 24, 2011 at 1:02 AM

I had an odd issue with the text box control. If the text box was empty (and autoselection=true), my first key press was ignored (only when I tab into the field). So the text "Password" would type out "assword". I fixed this with changing the SelectAll() method within the textbox.cs file to read as follows;

 

    public virtual void SelectAll()
    {
        if (text.Length > 0)
        {
            selection.Start = 0;
            selection.End = Text.Length;
        }
    }

 

 

Thanks for the hard work in providing this excellent UI framework.

Linuxx