Search code examples
macosdelphifiremonkeyfiremonkey-style

How can I stop changing style in firemonkey in ScaleChanged message


I use Firemokey 10.2. In macOS, internally when you move your from from a normal display to a retina display it automatically changes style of the controls. I would like to stop this message which is TScaleChangedMessage. I would appreciate If you could help me how can I stop this message in my app. In other word how can I stop changing from normal styles to High-Resolution Styles


Solution

  • I found the solution, changing this function function TMacWindowHandle.GetScale: Single; begin //Result := Wnd.backingScaleFactor result := 1; end; will solve this problem :)