toBorder(value, [failover])
Takes a string and tries to convert it into a border. The string must be a semi-colon separated list of values. The first value is the name of the border. The other values depend on the type of border. The following table defines the border types and the arguments they accept.
Border Type
|
Options
|
bevel
|
bevelType
Bevel Types:
|
0 = Raised
|
|
1 = Lowered
|
|
1010 = Double
|
|
button
|
none
|
etched
|
etchType
Etch Types:
|
0 = Raised
|
|
1 = Lowered
|
|
etchedtitled
|
title; style; fontJustification; fontPosition; fontColor; font
Styles:
|
0 = Etched / Lowered
|
|
1 = Etched / Raised
|
|
2 = Beveled / Lowered
|
|
3 = Beveled / Raised
|
|
4 = Develed / Double
|
|
5 = Standard
|
|
field
|
none
|
line
|
color; thickness
|
linetitled
|
title; width; lineColor; fontJustification; fontPosition; fontColor; font
|
matte
|
color; topWidth, leftWidth; bottomWidth; rightWidth
|
paneltitled
|
title; style; mainColor; bgColor, shadowSize, fontJustification; fontPosition; fontColor; font
Styles:
|
0=Gradient / South-to-North
|
|
1=Gradient / West-to-East
|
|
2=Gradient / North-to-South
|
|
3=Gradient / East-to-West
|
|
4=Solid
|
|
Other Constants
|
Font Justifications:
|
1 = Left
|
|
2 = Center
|
|
3 = Right
|
|
4 = Leading
|
|
5 = Trailing
|
|
Font Positions:
|
1 = Above Top
|
|
2 = Top
|
|
3 = Below Top
|
|
4 = Above Bottom
|
|
5 = Bottom
|
|
6 = Below Bottom
|
|
Examples:
toBorder("bevel;1010")
... returns
|

|
toBorder("matte;red;10;1;1;1")
... returns
|

|
toBorder("paneltitled;MyTitle")
... returns
|

|
toBorder("paneltitled;Options;1;lightgray;gray;0;;;(0,255,0)")
... returns
|

|
|