Previous Topic

Next Topic

ScaleToForm

method ScaleToForm(NumPixels: Number): Number

Available for Form Designer forms. Takes the NumPixels parameter, which is the number of pixels at a display size of 100%, and returns an integer result that is the NumPixels scaled to the scale factor of the form.

ScaleToForm method syntax has these named arguments:

Parameter

Description

NumPixels

Required. The number of pixels at display size 100% to be scaled.

For example:

  self.ScaleToForm(300)

If scaled at 100% returns 300

If scaled at 150 percent returns 450

If scaled at 200 percent returns 600

May be used when positioning components in code to handle scaling dynamically.

See Also

Form Designer Component Methods

Book Contents

Book Index