PDA

View Full Version : Styling TextInputs


MikeHovey
09-04-2007, 10:06 PM
I am having trouble styling the TextInput Component boxes. I am trying to style a box with the instance name "Sname" and another with the instance name "Smail". Here is the code I am using:


Sname.background = true;
Sname.backgroundColor = 0xFFFFFF;
Sname.border = true;
Sname.borderColor = 0x666666
Semail.background = true;
Semail.backgroundColor = 0xFFFFFF;
Semail.border = true;
Semail.borderColor = 0x666666;

I would also like the border color to change when the focus is changed. Whats the best/easiest way to do this? Thanks for the help in advance.