Chapter Contents

Previous

Next
Widget Class: _setBorderStyle

Widget Class: _setBorderStyle



Sets the border style of an object


Syntax
Details

Syntax

objectName._setBorderStyle( style );
objectName._setBorderStyle( style, width );
objectName._setBorderStyle( style,width, lightSource );

Argument Type Use Description
style Character Input specifies the border style: SIMPLE, SHADOW, BUTTON, EMBOSS, or NONE
width Numeric Input specifies the width of the border
lightSource Character Input specifies a light source: UPPER LEFT, UPPER RIGHT, LOWER LEFT, or LOWER RIGHT


Details

The light source is honored only if the shadow style is shadow, button, or emboss.

When values for style, width, or lightSource are missing, those attributes are not changed.

Example

obj1 is a container box. Clicking on the container cycles through different light sources and sets the border title to the current light source. The INIT section simply initializes CNT and does not have a return statement so the _setBorderStyle in MAIN runs:

 array light[0:3] $11 {"upper left",
                       "upper right",
                       "lower right",
                       "lower left" };
 INIT:
  cnt=0;

 MAIN:
  obj1._setBorderStyle('shadow',5,light[cnt]);
  obj1._setBorderTitle(light[cnt]);
  cnt = mod(cnt+1,4);
return;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.