开发者

How to remove Border from mx:DateField?

according the documentation borderThickness is an applicable style, but when I try to set it to anything (would prefer '0') it says "The style 'borderThickness' is excluded by type 'mx.controls.DateField'."

I could style the background color to be the same as the background, but I have an image behind so this will not work.

开发者_Go百科

There must be some way to remove this border!?


There is a protected property in the DateField named textInput. You can override the DateField class and set style 'borderStyle' of the textInput, which is of type TextInput, to 'none'. Example: .

public class ExtendedDateField extends DateField {

override protected function createChildren():void{
    super();
    textInput.setStyle('borderStyle','none');
}

}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜