guides:programming:programmers_reference_manual:scaled_event

SCALED event

OpenInsight 10 and above now has the capability to dynamically alter the scale of a form at runtime, taking care of layout, fonts and images. However, there may be circumstances where this is not sufficient - perhaps you need to alter the layout yourself, or perhaps you need to display a specific image rather than rely on a DPI Image list. In this case you will need to know when the scaling operation has taken place, and you can handle this in the new SCALED event.

bforward = SCALED( ctrlentID, ctrlclassID, origDpiX, origDpiY, origScaleFactor, newDpiX, newDpiY, newScaleFactor )

The event is passed the following event-specific arguments:

ParameterDescription
origDpiXThe original X DPI value
origDpiYThe original Y DPI value
origScaleFactorThe original SCALEFACTOR value
newDpiXThe new X DPI value
newDpiYThe new Y DPI value
newScaleFactorThe new SCALEFACTOR value

The system performs no default processing for this event.

  • guides/programming/programmers_reference_manual/scaled_event.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1