Home > Code Library > SmartViewport > ScaleWidth

Last Update 24 May 2001

 


Search:



  

Options:

   

   

   

   



SmartViewport
Reference

ScaleWidth

Returns the width in twips of the viewport client area. This property is not available at design time and is read-only at run-time.

Syntax

object.ScaleWidth

The object placeholder represents an object expression that evaluates to a SmartViewport object.

Remarks

This property is only available at run-time. ScaleWidth property returns the width of the viewport internal client area. The difference between ScaleWidth and Width will be width of the border.

Example:

'Set initial Width and BorderStyle
SmartViewport1.Width = 2055
SmartViewport1.BorderStyle = svNone

'Current ScaleWidth returns 2055
Debug.Print "ScaleWidth = "; SmartViewport1.ScaleWidth

'Change the BorderStyle to vsEtched
SmartViewport1.BorderStyle = svEtched

'Current ScaleWidth is now 1995

Debug
.Print "ScaleWidth = "; SmartViewport1.ScaleWidth

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