LogicalToPercentage Method Example

NOTE: The LogicalToPercentage Method Example applies to both Enhanced  and Logical Coordinates.

The following example converts the Top, Left, Height and Width coordinates from 30, 30, 100, 150 in logical units to percentage of screen space available for the PictureTestPicture.

Dim dTop As Double

Dim dLeft As Double

Dim dHeight As Double

Dim dWidth As Double

dTop = 30

dLeft = 30

dHeight = 100

dWidth = 150

TestPicture.LogicalToPercentage dTop, dLeft, dHeight, dWidth