Three parameters should be defined when setting the border property to a field: the kind of border, the thickness, and the color.
These should be enclosed in quotes because they are passed as a string.
so...
- Code: Select all
element.setBorder.('LineBorder,1,#ff0000')
I've specified that the border of my field should be a line ( because really a border could could be any number of things: Etched, Line, SpecialMatte, etc) , it should have thickness of 1 (this can be done in whole integers) and it should have the color blood red because I like my near sighted and color blind users to know that there's an issue with this field and that they haven't done something correctly. (Users... who need 'em).
Oh, and if you want to set a border to empty ( I've read this should be done on an onShow but I've successfully tested it elsewhere), here's how:
- Code: Select all
elements.setBorder("EmptyBorder,0,0,0,0")
Sardonic diatribe ends now...