dolphinsmalltalk / Dolphin

Dolphin Smalltalk Core Image
MIT License
294 stars 58 forks source link

7.2 High DPI: Message box scaling issues at non-primary DPI #1290

Open blairmcg opened 5 days ago

blairmcg commented 5 days ago

A message box shown on a monitor that is not operating at the primary system DPI (i.e. the DPI of the primary monitor), will have scaling issues. The most obvious and commonly occurring of these is that the grey band drawn under the buttons is not scaled from the primary DPI and so is drawn at the wrong position and with the wrong extent.

To Reproduce

  1. On a multi-monitor system with differing DPI scales between primary and secondary monitors, open a workspace on a secondary monitor (or move one from the primary monitor).
  2. Type some random text
  3. Click the workspace close button
  4. A prompt to save changes will appear

Actual

image

Expected image

Discussion This is a bug in the Windows message box. It is probably not fixable at an application level, and likely Microsoft are not interested in fixing it either since the old message box has been superseded by Task Dialog. In Dolphin 8 the MessageBox class does now use a Task Dialog, but it would be a significant undertaking to backport to Dolphin 7.2, so probably this is a Won't Fix for 7.x.