FitObject

<< Click to Display Table of Contents >>

 

FitObject

FitObject([ScreenFillPercentage])

This method fits an object in the center of a Screen using a percentage relative to the Screen for filling. The ScreenFillPercentage parameter is optional and, if not informed, assumes the value 50, that is, the object occupies 50% of the Screen's area. Allowed values for this parameter range between 1 (one) and 100. This method returns an error in the following cases:

The alignment mode configured in the Screen's ScreenAlignment property where the object is inserted is different from paCenter

The object is not visible, that is, its Visible property is equal to False

The X and Y coordinates of the object's center are not contained in the Screen's area where the object is inserted

Was this page useful?