APLX Help
: System Classes
: Properties
: scale
|
|
![]() |
The 'scale' property |
Scalar integer in the range 1 to 6 Valid for: All displayable objects, and the Printer and System objects The scale property sets the units which apply to dimensions of an object. The supported values are:
Changing the scale property on an object has no immediate visible effect, but sets the units for subsequent reading or setting of dimensional properties such as size. It is important to remember that the size property uses the units of the object to which it applies, but the where and extent properties use the units of the parent object. For compatibility with other APL systems, the default value for scale is 1, character units. However, it is usually much better to use scale 5, pixel units, in your applications. Note that, in APLX, the parent control's scale property is inherited by any children at the time the child is created. Thus, if you set the scale of the System object to 5 before creating any windows, all subsequently-created objects will inherit this value. Scale used for the Draw methodWhen you use the Draw method to draw geometric shapes and text on a control or window, a separate scale (specific to the Draw method operations) is used. This is initially set to be the same as the control's scale property value, but can be changed using the 'Scale' operation of the Draw method. This does not affect the scale property of the control. In addition to the values shown above, you also have the option of using a Draw-method scale which is proportional to the window or control size. |
|
APLX Help
: System Classes
: Properties
: scale
|
Copyright © 1996-2010 MicroAPL Ltd