Home > Code Library > SmartViewport > BorderStyle

Last Update 24 May 2001











Returns or sets the border style of the viewport.


object.BorderStyle [= value]

The BorderStyle property syntax has these parts:

Part Description
object An object expression that evaluates to a SmartViewport object.
value A value or constant that determines the border style, as described in Settings.


The BorderStyle property settings for SmartViewport are:

Constant Setting Description
svNone 0 The object will have no border.
svSunken 1 The object will have a normal Sunken border (2 pixels width).
svSunkenOuter 2 The object will have a thin Sunken border (1 pixel width).
svRaised 3 The object will have a normal Raised border (2 pixels width).
svRaisedInner 4 The object will have a thin Raised border (1 pixel width).
svBump 5 The object will have a Bump border (2 pixels width).
svEtched 6 The object will have a Etched border (2 pixels width).

At design time, the default BorderStyle for the SmartViewport is set to svNone.


The BorderStyle property can be changed at both design and run-time. Changing this property automatically updates ScaleWidth and ScaleHeight properties.

Copyright © 2001, Andrés Pons (andres@vbsmart.com). All rights reserved.