toBorder

Description

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.

For use with border bindings.

Border Type

Options

Type

Style

Font Justification

bevel

bevelType

0 = Raised

1 = Lowered

1010 = Double

 

 

button

none

 

 

 

etched

etchType

0 = Raised

1 = Lowered

 

 

etchedtitled

title; style; fontJustification; fontPosition; fontColor; font

 

0 = Etched / Lowered

1 = Etched / Raised

2 = Beveled / Lowered

3 = Beveled / Raised

4 = Beveled / Double

5 = Standard

1 = Left

2 = Center

3 = Right

4 = Leading

5 = Trailing

field

none

 

 

 

line

color; thickness

 

 

 

linetitled

title; width; lineColor; fontJustification; fontPosition; fontColor; font

 

 

1 = Left

2 = Center

3 = Right

4 = Leading

5 = Trailing

matte

color; topWidth, leftWidth; bottomWidth; rightWidth

 

 

 

paneltitled

title; style; mainColor; bgColor, shadowSize, fontJustification; fontPosition; fontColor;font

 

 

1=Gradient / West-to-East

2=Gradient / North-to-South

3=Gradient / East-to-West

4=Solid

1 = Left

2 = Center

3 = Right

4 = Leading

5 = Trailing

Syntax

toBorder( value, [failover] )

Examples
toBorder("bevel;1010") //returns this...

images/download/attachments/1704745/1.PNG

toBorder("matte;red;10;1;1;1") //returns this...

images/download/attachments/1704745/2.PNG

toBorder("linetitled;Title") //returns this...

images/download/attachments/1704745/Capture.PNG

toBorder("paneltitled;Options;1;grey;white;0;3;0;green;Dialog,bold,16") //returns this...

images/download/attachments/1704745/image2015-12-10_11_28_34.png