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:
Parameter | Description |
---|---|
origDpiX | The original X DPI value |
origDpiY | The original Y DPI value |
origScaleFactor | The original SCALEFACTOR value |
newDpiX | The new X DPI value |
newDpiY | The new Y DPI value |
newScaleFactor | The new SCALEFACTOR value |
The system performs no default processing for this event.