PDA

View Full Version : Text Area Component


pakman
02-18-2004, 09:06 PM
I am using the text-area compnent.
I prefer using it to a dynamic text field because it automatically adds or hide a scroll bar.

One Problom:
How do I get rid of the background in it?
( I could'nt find it as a property)

pakman
02-19-2004, 08:04 PM
I am using the text-area compnent.
I prefer using it to a dynamic text field because it automatically adds or hide a scroll bar.

One Problom:
How do I get rid of the background in it?
( I could'nt find it as a property)

quovadimus02
02-20-2004, 04:30 PM
myText._alpha = 0. Simple solution. Backgrounds disappear and the text remains. How come this isn't in the documentation I don't know, seems like a lot of properties are missing from the documentation. Here's another one I discovered that's not mentioned. Often when you use the scroll bar the text is automatically selected for some reason, use this code to get rid of that.
myTxt.label.selectable = false;

annexion
02-20-2004, 07:25 PM
That isn't a be all end all solution. The font isn't embedded, so _alpha doesn't change the text. However, the whole component has an _alpha value of 0.

pakman
02-25-2004, 05:47 PM
A creative solution indeed! However if I change the alpha property it hides the scrollbar as well which is what I am after. I like the fact that it just detects if a scrollbar is neccassary or not and puts it in...

Any way of hiding the box but not the scroll bar?

axidhaus
03-18-2004, 08:03 AM
Use setStyle class to change the background and border and much more. Replace myTextfield with your text field instance name.

myTextfield.setStyle("borderStyle", "none");

check in the help section for setStyle and you'll find lots of info.

Good luck!

Kevin :p