Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
New Developer
Posts: 47
Registered: ‎11-25-2010
My Device: Not Specified

How to fill color for qnx.ui.text.TextInput ?

Hi,

 

I want to validate a textinput, for this purpose i need to fill color qnx textInput as red color.

i have used

 

var _text_input:TextInput = new TextInput();
var fmt:TextFormat = new TextFormat();
fmt.color = 0xF0F0F0;
_text_input.format = fmt;
addChild(_text_input);

 

But The color did not changed, any idea ?

 

Highlighted
Developer
Posts: 192
Registered: ‎09-23-2009
My Device: 9860/PlayBook/Dev Alpha
My Carrier: Plus GSM

Re: How to fill color for qnx.ui.text.TextInput ?

Use the defaultTextFormat for setting default text format. It will be applied to all text which will be inserted later, during program execution.

Found my post helpfull? Like it! It solves your trouble? Help others and accept it as solution. Search before asking.
My apps: Secret Cod3s | Should my tablet be banned?
--
Jakub Nietrzeba
PGS Software S.A.
Your reliable partner in Poland - IT Outsourcing - BlackBerry, iPhone, Web and Standalone applications